/* ===================================
   Minimalistic Login Page Styles
   Full-Page Mobile & Clean Design
   =================================== */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Login Container */
.login-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-dark);
    padding: 0;
    margin-top: 0 !important;
}

/* Main Login Card */
.login-wrapper {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background: var(--background-dark);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease;
}

/* Logo Section */
.login-logo-section {
    background: var(--background-dark);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.login-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.login-title {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Form Section */
.login-form-section {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.login-form-subtitle {
    font-size: 0.9rem;
    color: #adb5bd;
    margin: 0;
    font-weight: 400;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

.form-group-login {
    position: relative;
}

.form-label-login {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #adb5bd;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
}

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

.form-input-icon {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    font-size: 1rem;
    transition: color 0.2s ease;
    pointer-events: none;
}

.form-control-login {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid #3c4044;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    background-color: #2c3136;
    transition: all 0.2s ease;
}

.form-control-login:focus {
    outline: none;
    border-color: var(--btn-green);
    background-color: #343a40;
    box-shadow: 0 0 0 3px rgba(60, 166, 32, 0.15);
}

.form-control-login:focus ~ .form-input-icon {
    color: var(--btn-green);
}

.form-control-login::placeholder {
    color: #6c757d;
    font-weight: 400;
}

/* Submit Button */
.btn-login-submit {
    width: 100%;
    padding: 0.875rem;
    background: var(--btn-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login-submit:hover {
    background: #35941c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(60, 166, 32, 0.25);
}

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

/* Error Messages */
.login-errorlist {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.login-errorlist li {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-left: 3px solid #dc3545;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: #f8d7da;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.login-errorlist li::before {
    content: '\f06a';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #f8d7da;
    font-size: 0.9rem;
}

/* Footer */
.login-footer {
    text-align: center;
    padding: 1.5rem 2rem 2rem;
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0;
}

.login-footer p {
    margin: 0;
    font-weight: 400;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading State */
.btn-login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive - Desktop/Tablet */
@media (min-width: 769px) {
    .login-page-container {
        background: linear-gradient(135deg, #1a1d21 0%, var(--background-dark) 100%);
        padding: 2rem;
    }

    .login-wrapper {
        max-width: 440px;
        min-height: auto;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        border: 1px solid #3c4044;
    }

    .login-logo-section {
        padding: 3rem 2.5rem 2rem;
    }

    .login-form-section {
        padding: 2rem 2.5rem 3rem;
    }

    .login-footer {
        border-top: 1px solid #3c4044;
    }
}

/* Responsive - Mobile (Full Page) */
@media (max-width: 768px) {
    .login-page-container {
        padding: 0;
        background: var(--background-dark);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-wrapper {
        border-radius: 0;
        box-shadow: none;
        border: none;
        min-height: auto;
        display: block;
    }

    .login-logo-section {
        padding: 1.5rem 1.5rem 1.25rem;
    }

    .login-logo {
        max-width: 200px;
    }

    .login-title {
        font-size: 1.15rem;
    }

    .login-form-section {
        padding: 1.25rem 1.5rem 1.5rem;
        flex: none;
    }

    .login-form-header {
        margin-bottom: 2rem;
    }

    .login-form-title {
        font-size: 1.35rem;
    }

    .login-form-subtitle {
        font-size: 0.85rem;
    }

    .login-form {
        gap: 1.5rem;
    }

    .form-label-login {
        font-size: 0.8rem;
    }

    .form-control-login {
        padding: 0.875rem 0.875rem 0.875rem 2.65rem;
        font-size: 0.95rem;
    }

    .form-input-icon {
        left: 0.875rem;
        font-size: 0.95rem;
    }

    .btn-login-submit {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .login-footer {
        padding: 1.25rem 1.5rem 1.5rem;
        font-size: 0.75rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .login-logo-section {
        padding: 1.5rem 2rem 1rem;
    }

    .login-logo {
        max-width: 150px;
        margin-bottom: 0.5rem;
    }

    .login-title {
        font-size: 1rem;
    }

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

    .login-form-header {
        margin-bottom: 1.25rem;
    }

    .login-form-title {
        font-size: 1.2rem;
    }

    .login-form-subtitle {
        font-size: 0.8rem;
    }

    .login-form {
        gap: 1.25rem;
    }

    .login-footer {
        padding: 1rem 2rem;
    }
}

/* Focus Visible for Accessibility */
.form-control-login:focus-visible,
.btn-login-submit:focus-visible {
    outline: 2px solid var(--btn-green);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-control-login {
        border-width: 3px;
    }

    .btn-login-submit {
        border: 2px solid white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

