/**
 * VictPower /accounts/login styling.
 * See .cursor/specs/ui/admin-cosmetic-spec.md §13
 */
:root {
    --primary-color: #0d3188;
    --secondary-color: #799ff9;
}

body {
    overflow-x: hidden;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.image-container {
    background-color: #3c4142;
    position: relative;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.dropdown-menu {
    min-width: 100px;
}

.login-brand-logo {
    display: block;
    max-width: min(240px, 70vw);
    width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
    object-fit: contain;
}

.welcome-text {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-align: center;
}

.login-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 8px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.forgot-link,
.signup-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover,
.signup-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-control {
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(214, 226, 255, 1);
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 3rem;
}

.main-row {
    min-height: 100vh;
}

/* Mobile Specific Styles */
@media (max-width: 767px) {
    .main-row {
        flex-direction: column;
    }

    .image-container {
        height: 20vh;
        min-height: 250px;
    }

    .login-container {
        padding: 2rem 1.5rem;
        height: auto;
    }

    .welcome-text {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }

    .form-control {
        padding: 10px 15px;
    }

    .language-selector {
        top: 10px;
        right: 10px;
    }

    .forgot-password-container {
        margin-top: 0.5rem;
        text-align: right;
    }

    .login-actions {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .login-btn {
        margin-bottom: 1rem;
        width: 100%;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .login-container {
        padding: 1.5rem 1rem;
    }

    .welcome-text {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
}

/* Landscape Mode on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .image-container {
        height: 100vh;
    }

    .main-row {
        flex-direction: row;
    }

    .login-container {
        padding: 1rem;
    }

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

    .form-control {
        padding: 8px 15px;
        margin-bottom: 0.5rem;
    }
}
