* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-image: url('/media/39610.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    overflow: auto;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1500px;
    width: 100%;
    min-height: 600px;
}

header {
    color: rgb(255, 255, 255);
    padding: 30px;
    text-align: center;
    border-radius: 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.blur-light {
    background-color: rgba(255, 255, 255, 0.1);
    --webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blur-medium {
    background-color: rgba(255, 255, 255, 0.2);
    --webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.blur-strong {
    background-color: rgba(255, 255, 255, 0.4);
    --webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-container {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
    border: 5px solid #000000;
}

.form-container {
    animation: fadeIn 0.5s ease-in-out;
}

.switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-container h2 {
    color: #9c9c9c;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: left;
}

.form-container a {
    color: #9c9c9c;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: right;
}

.form-container h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #545454;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

button:active {
    transform: translateY(0);
}

.form-buttons {
    display: flex;
    gap: 10px;
}

.form-buttons button {
    flex: 1;
}

.toggle-form {
    text-align: center;
    margin-top: 20px;
    color: #dedede;
}

.toggle-form a {
    padding: 10px 15px;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.toggle-form a:hover {
    text-decoration: underline;
}

.user-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.user-info p {
    margin-bottom: 10px;
    color: #555;
}

.user-info strong {
    color: #333;
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-actions button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.dashboard-actions button:last-child {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.update-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.message.error {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 756px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }

    .auth-container {
        padding: 20px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .switch {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .form-container h2 {
        color: #000000;
        margin-bottom: 30px;
        font-size: .8rem;
        text-align: left;
    }

    .form-container a {
        color: #ffffff;
        margin-bottom: 30px;
        font-size: .8rem;
        text-align: right;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #000000;
        font-weight: 500;
    }
}