/* Modern Auth Layout Styles */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #ea580c 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Animated background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 58, 138, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(234, 88, 12, 0.2) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.5s ease-out;
    margin: 1rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.auth-logo {
    margin-bottom: 1.5rem;
}

.logo-img {
    max-width: 180px;
    height: auto;
    display: inline-block;
    border: none;
    outline: none;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Headings */
.auth-container h2 {
    color: #2d3748;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Forms */
.auth-container form {
    margin-top: 2rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #2d3748;
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    background-color: #fff;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* Validation Messages */
.text-danger {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Validation Summary */
[asp-validation-summary="All"] {
    background-color: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #c53030;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1e40af 0%, #ea580c 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
    background: linear-gradient(135deg, #ea580c 0%, #1e40af 100%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.4);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.3), 0 4px 15px rgba(30, 64, 175, 0.4);
}

/* Form Check (Remember Me) */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #1e40af;
    border-color: #1e40af;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-check-label {
    color: #4a5568;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 0;
}

/* Links */
a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* Text Center */
.text-center {
    text-align: center;
    margin-top: 1.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.text-center p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-container {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
        border-radius: 15px;
    }

    .auth-container h2 {
        font-size: 1.75rem;
    }

    .logo-img {
        max-width: 140px;
    }

    .form-control {
        padding: 0.75rem 0.875rem;
    }

    .btn-primary {
        padding: 0.75rem 1.25rem;
    }
}

/* Loading State */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Focus Visible for Accessibility */
.form-control:focus-visible,
.btn-primary:focus-visible,
.form-check-input:focus-visible {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

