.login-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top left,
            rgba(34, 197, 94, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef2f7 100%
        );
}

.back-home-btn {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
}

.login-main {
    min-height: calc(100vh - 79px);
    display: flex;
    align-items: center;
    padding: 55px 0;
}

.login-container {
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow:
        0 25px 70px rgba(15, 23, 42, 0.1);
}

.login-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: var(--primary);
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
}

.login-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.login-card-header h1 {
    margin-bottom: 8px;
    font-size: 29px;
    line-height: 1.3;
}

.login-card-header p {
    color: var(--muted);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #ffffff;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.12);
}

.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.forgot-link {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-inline-end: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 10px;
    width: 35px;
    height: 35px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--muted);
    font-size: 13px;
}

.remember-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-dark);
}

.login-submit {
    width: 100%;
    height: 51px;
    border: 0;
    border-radius: 11px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.login-submit:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.login-divider {
    position: relative;
    margin: 28px 0 20px;
    text-align: center;
}

.login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline: 0;
    height: 1px;
    background: var(--border);
}

.login-divider span {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
}

.register-company-btn {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.register-company-btn:hover {
    border-color: var(--accent);
}

.login-security {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.alert-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 600px) {

    .login-main {
        align-items: flex-start;
        padding: 30px 0;
    }

    .login-card {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .login-card-header h1 {
        font-size: 25px;
    }

    .back-home-btn {
        display: none;
    }

}