/* Velgrina Login — Hyvä native CSS override */

/* Page container — wider */
.customer-account-login .columns {
    max-width: 960px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem 3rem !important;
}

.customer-account-login .column.main {
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
}

/* Page title */
.customer-account-login .page-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #1e2022 !important;
}

/* Cards — rounded borders, shadow */
.customer-account-login .card {
    border: 1px solid #eaecef !important;
    border-radius: 12px !important;
    padding: 2rem 2rem 1.75rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

/* Headings */
.customer-account-login .card h2,
.customer-account-login .card .text-xl {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1e2022 !important;
}

.customer-account-login .card .mb-8 {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
}

/* Labels */
.customer-account-login .label {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
}

/* Inputs — rounded, focus ring */
.customer-account-login .form-input {
    padding: 0.8125rem 1rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 0.9375rem !important;
    background: #fafbfc !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.customer-account-login .form-input:focus {
    border-color: #2e7d8c !important;
    box-shadow: 0 0 0 3px rgba(46,125,140,0.1) !important;
    outline: none !important;
    background: #fff !important;
}

/* Primary button — full width teal */
.customer-account-login .btn-primary,
.customer-account-login button.btn-primary,
.customer-account-login .actions-toolbar button[type="submit"] {
    width: 100% !important;
    padding: 0.875rem 2rem !important;
    background-color: #2e7d8c !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.customer-account-login .btn-primary:hover,
.customer-account-login button.btn-primary:hover,
.customer-account-login .actions-toolbar button[type="submit"]:hover {
    background-color: #246876 !important;
}

/* Actions toolbar — reverse order */
.customer-account-login .actions-toolbar {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 1rem !important;
    align-items: stretch !important;
}

.customer-account-login .actions-toolbar .primary {
    width: 100% !important;
}

.customer-account-login .actions-toolbar a,
.customer-account-login .actions-toolbar .action.back {
    color: #2e7d8c !important;
    font-size: 0.8125rem !important;
    text-align: center !important;
    display: block !important;
    text-decoration: none !important;
}

.customer-account-login .actions-toolbar a:hover {
    text-decoration: underline !important;
}

/* Register section — outlined button */
.customer-account-login .block-new-customer .action,
.customer-account-login .block-new-customer a.action,
.customer-account-login .block-new-customer .btn,
.customer-account-login .block-new-customer button {
    display: block !important;
    width: 100% !important;
    padding: 0.875rem !important;
    text-align: center !important;
    background-color: transparent !important;
    border: 2px solid #2e7d8c !important;
    color: #2e7d8c !important;
    border-radius: 8px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
}

.customer-account-login .block-new-customer .action:hover,
.customer-account-login .block-new-customer a.action:hover,
.customer-account-login .block-new-customer .btn:hover,
.customer-account-login .block-new-customer button:hover {
    background-color: #2e7d8c !important;
    color: #fff !important;
}

/* Register text */
.customer-account-login .block-new-customer .block-content p {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

/* Password toggle */
.customer-account-login .control button[type="button"] {
    color: #9ca3af !important;
    transition: color 0.15s !important;
}

.customer-account-login .control button[type="button"]:hover {
    color: #374151 !important;
}

/* Field spacing */
.customer-account-login .field {
    margin-bottom: 1rem !important;
}

/* Mobile */
@media (max-width: 640px) {
    .customer-account-login .columns {
        padding: 1.5rem 1rem 2rem !important;
    }

    .customer-account-login .card {
        padding: 1.5rem !important;
    }
}
