/* Authentication Pages CSS */

/* Custom CSS Variables */
:root {
    --lautech-gold: #C0A062;
    --lautech-dark: #1a1d29;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow-x: hidden;
}

/* Auth Container */
.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Branding */
.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, var(--lautech-gold) 0%, #8b7045 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.branding-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 500px;
}

.logo-section {
    display: flex;
    align-items: center;
    animation: fadeInDown 0.8s ease-out;
}

.auth-logo {
    height: 60px;
    margin-right: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.welcome-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.feature-list {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #ffd700;
}

/* Right Side - Form Section */
.auth-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: white;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--lautech-dark);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Form Styles */
.auth-form {
    margin-top: 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--lautech-dark);
    margin-bottom: 0.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    z-index: 10;
    color: #6c757d;
    font-size: 1.1rem;
}

.input-icon-right {
    position: absolute;
    right: 15px;
    z-index: 10;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-icon-right:hover {
    color: var(--lautech-gold);
}

.form-control {
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--lautech-gold);
    box-shadow: 0 0 0 0.2rem rgba(192, 160, 98, 0.25);
}

.form-check-input:checked {
    background-color: var(--lautech-gold);
    border-color: var(--lautech-gold);
}

.form-check-label {
    color: #6c757d;
    cursor: pointer;
}

.forgot-password {
    color: var(--lautech-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #8b7045;
    text-decoration: underline;
}

/* Submit Button */
.btn-auth {
    background: linear-gradient(135deg, var(--lautech-gold) 0%, #8b7045 100%);
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 160, 98, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 160, 98, 0.4);
    background: linear-gradient(135deg, #8b7045 0%, var(--lautech-gold) 100%);
}

.btn-auth:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.divider span {
    background-color: white;
    padding: 0 1rem;
    color: #6c757d;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Social Login Buttons */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-social {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    background-color: white;
    color: var(--lautech-dark);
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #dc4e41;
    color: #dc4e41;
}

.btn-facebook:hover {
    background-color: #f8f9fa;
    border-color: #3b5998;
    color: #3b5998;
}

/* Sign Up/Sign In Link */
.signup-text {
    color: #6c757d;
    margin-bottom: 0;
}

.signup-link {
    color: var(--lautech-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signup-link:hover {
    color: #8b7045;
    text-decoration: underline;
}

.terms-link {
    color: var(--lautech-gold);
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Back to Home Link */
.back-home {
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.back-home:hover {
    color: var(--lautech-gold);
}

/* Password Strength Indicator */
.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-branding {
        min-height: 40vh;
        padding: 2rem;
    }

    .welcome-text {
        font-size: 2rem;
    }

    .brand-name {
        font-size: 2rem;
    }

    .auth-logo {
        height: 50px;
    }

    .feature-list {
        display: none;
    }

    .auth-form-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .auth-branding {
        min-height: 30vh;
        padding: 1.5rem;
    }

    .welcome-text {
        font-size: 1.5rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .auth-logo {
        height: 40px;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .auth-form-container {
        padding: 1rem;
    }

    .form-control {
        padding: 0.625rem 1rem 0.625rem 2.5rem;
    }

    .input-icon {
        left: 10px;
        font-size: 1rem;
    }

    .btn-auth {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    .btn-social {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--lautech-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Hover Effects */
.form-control:hover {
    border-color: #adb5bd;
}

.form-check-input:hover {
    cursor: pointer;
    border-color: var(--lautech-gold);
}

/* Focus States */
.btn-auth:focus,
.btn-social:focus,
.form-control:focus {
    outline: none;
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}