/* Authentication Pages Styles - Premium Boxed Design */
.auth-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.auth-gradient {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.12) 0%, rgba(0, 217, 255, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    animation: authPulse 8s ease-in-out infinite;
}

.auth-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(0, 102, 255, 0.05) 0%, transparent 60%);
    animation: authParticles 12s ease-in-out infinite;
}

@keyframes authPulse {
    0%, 100% { 
        transform: scale(1) translate(0, 0); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.1) translate(30px, 30px); 
        opacity: 0.8; 
    }
}

@keyframes authParticles {
    0%, 100% { 
        opacity: 1;
        transform: translateY(0);
    }
    50% { 
        opacity: 0.7;
        transform: translateY(-20px);
    }
}

.auth-wrapper {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Main Card - Premium Glassmorphism */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 32px;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.08),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 102, 255, 0.05);
    padding: 56px 48px;
    animation: authFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

@keyframes authFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.auth-logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066ff 0%, #00d9ff 100%);
    color: white;
    border-radius: 12px;
    font-weight: 800;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.25);
}

.auth-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #0066ff 0%, #00d9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #0a0a0a;
    margin-bottom: 12px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.auth-header p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

/* Form Box - Inner Boxed Container */
.auth-form {
    margin: 0 0 32px 0;
    border: 2px solid #d1d5db;
    border-radius: 16px;
    padding: 32px;
    background: #f9fafb;
    box-shadow: 
        inset 0 2px 4px 0 rgba(0, 0, 0, 0.06),
        0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-row {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 0;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #0a0a0a;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.form-group label svg {
    color: #0066ff;
    flex-shrink: 0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 15px;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #0a0a0a;
    box-sizing: border-box;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #3385ff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 
        0 0 0 4px rgba(0, 102, 255, 0.1),
        0 4px 12px rgba(0, 102, 255, 0.08);
    transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
}

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
}

.form-help-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.form-help-links a {
    color: #0066ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.form-help-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066ff;
    transition: width 0.3s ease;
}

.form-help-links a:hover {
    color: #0052cc;
}

.form-help-links a:hover::after {
    width: 100%;
}

.checkbox-group {
    margin-bottom: 28px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: #0a0a0a;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #0a0a0a;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0066ff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:hover {
    transform: scale(1.1);
}

.checkbox-label a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #0052cc;
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-auth-submit {
    background: linear-gradient(135deg, #0066ff 0%, #00d9ff 100%);
    color: #ffffff;
    padding: 18px 32px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 14px;
    box-shadow: 
        0 8px 24px rgba(0, 102, 255, 0.3),
        0 4px 12px rgba(0, 102, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    margin-top: 8px;
}

.btn-auth-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-auth-submit:hover::before {
    width: 400px;
    height: 400px;
}

.btn-auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(0, 102, 255, 0.4),
        0 8px 16px rgba(0, 102, 255, 0.3);
}

.btn-auth-submit:active {
    transform: translateY(-1px);
}

.btn-auth-submit svg {
    transition: transform 0.3s ease;
}

.btn-auth-submit:hover svg {
    transform: translateX(4px);
}

.alert {
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.6;
    animation: authFadeIn 0.4s ease;
    position: relative;
    border-left: 4px solid;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background-color: #fef2f2;
    border-color: #dc2626;
    border-left-color: #dc2626;
    color: #991b1b;
}

.alert-error ul {
    margin: 0;
    padding-left: 20px;
}

.alert-error li {
    margin-bottom: 4px;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #16a34a;
    border-left-color: #16a34a;
    color: #166534;
}

.auth-footer {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.auth-footer p {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
    font-weight: 400;
}

.auth-footer a {
    color: #0066ff;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 4px;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 4px;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #0066ff 0%, #00d9ff 100%);
    transition: width 0.3s ease;
}

.auth-footer a:hover {
    color: #0052cc;
}

.auth-footer a:hover::after {
    width: calc(100% - 8px);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 40px 0;
        min-height: calc(100vh - 60px);
    }

    .auth-wrapper {
        padding: 0 20px;
        max-width: 100%;
    }

    .auth-card {
        padding: 40px 28px;
        border-radius: 24px;
    }
    
    .auth-form {
        padding: 24px;
        border-radius: 14px;
    }

    .auth-logo {
        margin-bottom: 28px;
    }

    .auth-logo-image {
        width: 44px;
        height: 44px;
    }

    .auth-logo-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .auth-logo-text {
        font-size: 22px;
    }

    .auth-header h1 {
        font-size: 30px;
    }

    .auth-header p {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 18px;
        font-size: 14px;
    }

    .btn-auth-submit {
        padding: 16px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 20px;
        border-radius: 24px;
    }
    
    .auth-form {
        padding: 20px;
        border-radius: 12px;
    }

    .auth-logo {
        gap: 10px;
    }

    .auth-logo-image {
        width: 40px;
        height: 40px;
    }

    .auth-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .auth-logo-text {
        font-size: 20px;
    }
}
