/* ===========================================
   AUTH PAGES - Modern Trendy Design
   =========================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    font-family: 'Dosis', sans-serif;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    min-height: calc(100vh - 80px);
    background: #fff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08);
    border-radius: 0;
}

/* Form Section */
.auth-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #fff;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    margin-bottom: 36px;
    text-align: center;
}

.auth-logo {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 24px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.auth-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Alert */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.auth-alert i {
    font-size: 18px;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Floating Label Input */
.form-floating-group {
    position: relative;
}

.form-input {
    width: 100%;
    height: 58px;
    padding: 24px 48px 10px 18px;
    font-size: 15px;
    font-family: 'Dosis', sans-serif;
    color: #1a1a1a;
    background: #f8f8f8;
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    background: #fff;
    border-color: #1a1a1a;
}

.form-input::placeholder {
    color: transparent;
}

.form-label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #888;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
    top: 8px;
    transform: translateY(0);
    font-size: 11px;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-input:focus~.input-icon {
    color: #1a1a1a;
}

.input-error {
    border-color: #e53e3e !important;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #1a1a1a;
}

/* Password Strength - Segmented Bar */
.password-strength-wrapper {
    margin-top: -10px;
    margin-bottom: 8px;
}

.strength-segments {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.segment {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.segment.active {
    transform: scaleY(1.2);
}

.password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.req {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.req i {
    font-size: 12px;
    transition: all 0.3s ease;
}

.req.met {
    color: #38a169;
}

.req.met i {
    color: #38a169;
}


/* Password Match Indicator */
.match-indicator {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.match-indicator.show {
    opacity: 1;
}

.match-indicator.match {
    color: #38a169;
}

.match-indicator.match i::before {
    content: "\f26b";
    /* check-circle-fill */
}

.match-indicator.no-match {
    color: #e53e3e;
}

.match-indicator.no-match i {
    transform: rotate(45deg);
}

.match-indicator.no-match i::before {
    content: "\f4ab";
    /* x-circle-fill */
}

/* Input match states */
.input-match {
    border-color: #38a169 !important;
}

.input-no-match {
    border-color: #e53e3e !important;
}

/* Checkbox */
.form-options {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    margin-top: 1px;
}

.checkbox-wrapper input:checked+.checkmark {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.checkbox-wrapper input:checked+.checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.forgot-link {
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #555;
}

.terms-link {
    color: #1a1a1a;
    font-weight: 600;
}

/* Submit Button */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Dosis', sans-serif;
    letter-spacing: 1px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.auth-btn.primary {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.auth-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.auth-btn.primary:hover {
    color: #fff;
}

.auth-btn.primary:hover::before {
    left: 0;
}

.auth-btn i {
    transition: transform 0.3s ease;
}

.auth-btn:hover i {
    transform: translateX(4px);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Dosis', sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #1a1a1a;
    background: #f8f8f8;
}

.social-btn i {
    font-size: 18px;
}

.social-btn.google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.social-btn.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 15px;
    color: #666;
}

.auth-link {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.auth-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.auth-link:hover::after {
    transform: scaleX(1);
}

/* Image Section */
.auth-image-section {
    position: relative;
    background: url('https://images.unsplash.com/photo-1600607686527-6fb886090705?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 60px;
}

.auth-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.auth-image-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.auth-image-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.auth-image-content p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 320px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        min-height: 100vh;
    }

    .auth-image-section {
        display: none;
    }

    .auth-form-section {
        padding: 40px 24px;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
    }

    .auth-title {
        font-size: 24px;
    }
}