/**
 * InvoiceFlow - Login Page Stylesheet
 */

:root {
    --primary: #7557e8;
    --primary-light: #f0ebff;
    --primary-hover: #6343dc;
    --background: #f7f6fc;
    --text: #25233b;
    --muted: #89879e;
    --border: #ebe9f3;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(57, 47, 115, 0.05);
    padding: 40px 36px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 750;
    margin-bottom: 24px;
}

.login-brand-logo {
    display: block;
    width: 220px;
    max-width: 85%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    margin: 0 auto;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #a58aff, #6542d7);
    font-size: 22px;
    flex-shrink: 0;
}

.login-title {
    font-size: 22px;
    font-weight: 750;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text);
}

.login-subtitle {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 28px;
}

.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

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

.input-group-custom .input-icon {
    position: absolute;
    left: 14px;
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.input-group-custom .form-control {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px 12px 42px;
    font-size: 13.5px;
    color: var(--text);
    background: #faf9fe;
    transition: all 0.2s ease-in-out;
}

.input-group-custom .form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(117, 87, 232, 0.15);
    outline: none;
}

.input-group-custom .password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--muted);
    padding: 6px 8px;
    font-size: 17px;
    cursor: pointer;
    z-index: 3;
    border-radius: 8px;
    transition: color 0.15s ease;
}

.input-group-custom .password-toggle:hover {
    color: var(--primary);
}

.btn-primary-custom {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 16px rgba(117, 87, 232, 0.25);
}

.btn-primary-custom:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

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

.alert-custom {
    border-radius: 12px;
    font-size: 12.5px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.alert-danger-custom {
    background: #fff0f3;
    border: 1px solid #ffd0d8;
    color: #d63351;
}

.alert-success-custom {
    background: #e6f9f1;
    border: 1px solid #b7f0d8;
    color: #15966b;
}

.footer-note {
    text-align: center;
    margin-top: 24px;
    font-size: 11.5px;
    color: var(--muted);
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
}
