/* ===================================
   AUTH PAGE STYLES
   =================================== */

/* Auth Page Layout */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
}

.auth-header {
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.auth-header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-header .logo span {
    color: #ff6b6b;
}

.auth-header .back-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.auth-header .back-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Auth Main */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
}

/* Background Elements */
.auth-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.auth-bg-elements .circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.auth-bg-elements .circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.auth-bg-elements .circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 10%;
}

.auth-bg-elements .circle-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: -50px;
}

/* Auth Box */
.auth-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 2fr 1fr;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    grid-column: 1;
    border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
    flex: 1;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.auth-tab:hover {
    color: #667eea;
    background: #f8f9ff;
}

.auth-tab.active {
    color: #667eea;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Auth Form Container */
.auth-form-container {
    grid-column: 1;
    padding: 2.5rem;
    display: none;
}

.auth-form-container.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Header Text */
.auth-header-text {
    margin-bottom: 2rem;
}

.auth-header-text h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.auth-header-text p {
    color: #718096;
    font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #667eea;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #667eea;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #e53e3e;
    transition: all 0.3s;
}

.strength-fill.weak {
    width: 33%;
    background: #e53e3e;
}

.strength-fill.medium {
    width: 66%;
    background: #ed8936;
}

.strength-fill.strong {
    width: 100%;
    background: #48bb78;
}

.strength-text {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

/* Error Message */
.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    display: none;
}

.form-group.error input {
    border-color: #e53e3e;
}

.form-group.error .error-message {
    display: block;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: #4a5568;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #764ba2;
}

/* Buttons */
.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading .btn-loader {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #a0aec0;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Social Auth */
.social-auth {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.btn-social {
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-social:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-social i {
    font-size: 1.1rem;
}

.btn-google {
    color: #db4437;
}

.btn-facebook {
    color: #1877f2;
}

/* Auth Benefits Sidebar */
.auth-benefits {
    grid-column: 2;
    grid-row: 1 / -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.auth-benefits h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-benefits ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-benefits li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.auth-benefits li i {
    font-size: 1.5rem;
    color: #48bb78;
    flex-shrink: 0;
}

.auth-benefits li div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-benefits li strong {
    font-size: 1rem;
}

.auth-benefits li span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Testimonial Mini */
.testimonial-mini {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-mini img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.testimonial-mini div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.testimonial-mini p {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
}

.testimonial-mini strong {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Auth Footer */
.auth-footer {
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 992px) {
    .auth-box {
        grid-template-columns: 1fr;
    }

    .auth-benefits {
        display: none;
    }

    .auth-tabs,
    .auth-form-container {
        grid-column: 1;
    }
}

@media (max-width: 576px) {
    .auth-form-container {
        padding: 1.5rem;
    }

    .auth-header-text h2 {
        font-size: 1.5rem;
    }

    .social-auth {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
