/* Auth Pages Styles */

/* Reset for auth pages */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Auth Layout - Full Screen */
.auth-wrapper {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

/* Header */
.auth-header {
    background: transparent;
    padding: 0.75rem 0;
    flex-shrink: 0;
}

.auth-header .navbar-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-header .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.auth-header .nav-link:hover {
    color: var(--bs-primary) !important;
}

/* Main Content */
.auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    overflow-y: auto;
    padding: 1rem 0;
}

/* Left Side - Hero Content */
.auth-hero {
    color: #fff;
    padding: 2rem;
}

.auth-hero .badge-text {
    color: var(--bs-primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

.auth-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.auth-hero h1 .highlight {
    color: var(--bs-primary);
}

.auth-hero p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.auth-hero .btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.auth-hero .btn-primary:hover {
    transform: translateY(-2px);
}

.auth-hero .btn-outline-light {
    border-width: 2px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.auth-hero .btn-outline-light:hover {
    background: #fff;
    color: #333;
}

/* Right Side - Auth Card */
.auth-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Glassmorphism Card */
.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 1rem;
}

/* Side by side inputs for signup */
.auth-form .row .input-group {
    border-radius: 50px;
}

.auth-form .row .input-group-text {
    padding: 0.75rem 0.4rem 0.75rem 1rem;
}

.auth-form .row .form-control {
    padding: 0.75rem 0.75rem 0.75rem 0.25rem;
    font-size: 0.9rem;
}

.auth-form .input-group {
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-form .input-group:focus-within {
    box-shadow: 0 2px 15px rgba(var(--bs-primary-rgb), 0.3);
}

.auth-form .input-group-text {
    background: #fff;
    border: none;
    padding: 0.875rem 0.5rem 0.875rem 1.25rem;
    color: #999;
}

.auth-form .input-group-text i {
    font-size: 1.1rem;
}

.auth-form .form-control {
    border: none;
    padding: 0.875rem 0.5rem;
    font-size: 1rem;
    background: #fff;
}

.auth-form .form-control:focus {
    box-shadow: none;
    background: #fff;
}

.auth-form .form-control::placeholder {
    color: #aaa;
}

/* Toggle password button */
.auth-form .input-group .btn {
    background: #fff;
    border: none;
    padding: 0.875rem 1.25rem 0.875rem 0.5rem;
    color: #999;
}

.auth-form .input-group .btn:hover {
    color: #666;
}

.forgot-password {
    text-align: right;
    margin-bottom: 1rem;
}

.forgot-password a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--bs-primary);
}

/* Buttons */
.auth-form .btn-dark {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.auth-form .btn-dark:hover {
    transform: translateY(-2px);
}

.auth-form .btn-dark:disabled {
    cursor: not-allowed;
    transform: none;
}

.signup-link {
    text-align: center;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.signup-link a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.divider span {
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Social Buttons */
.auth-form .btn-light {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-form .btn-light:hover {
    transform: translateY(-2px);
}

.auth-form .btn-light img,
.auth-form .btn-light svg {
    width: 20px;
    height: 20px;
}

/* Error/Success Messages */
.alert-auth {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-auth.alert-danger {
    background: rgba(220, 53, 69, 0.9);
    border: none;
    color: #fff;
}

.alert-auth.alert-success {
    background: rgba(40, 167, 69, 0.9);
    border: none;
    color: #fff;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Text colors for glass card */
.auth-card .text-center {
    color: rgba(255, 255, 255, 0.9);
}

.auth-card p {
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .auth-hero {
        text-align: center;
        padding: 3rem 1rem 2rem;
    }

    .auth-hero h1 {
        font-size: 2rem;
    }

    .auth-hero .btn-group-custom {
        justify-content: center;
    }

    .auth-card-wrapper {
        padding: 1rem;
    }

    .auth-card {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .auth-hero h1 {
        font-size: 1.75rem;
    }

    .auth-hero p {
        font-size: 0.9rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .auth-card h2 {
        font-size: 1.75rem;
    }

    .auth-header .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }
}

/* Hide hero on very small screens for login focus */
@media (max-width: 767.98px) {
    .auth-hero {
        display: none;
    }

    .auth-content {
        justify-content: center;
    }

    .auth-card-wrapper {
        width: 100%;
    }
}
