/**
 * Modern Login Form Styling
 * Clean design with underline inputs and pill buttons
 */

/* ============================================
   PAGE BACKGROUND
   ============================================ */
.customer-account-login .column.main {
    background: #f5f5f5;
    padding: 60px 20px;
    min-height: 60vh;
}

/* ============================================
   LOGIN CONTAINER - Centered card
   ============================================ */
.customer-account-login .login-container {
    max-width: 450px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 25px !important;
    padding: 40px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 0 !important;
    overflow: hidden;
}

/* ============================================
   LOGIN HEADER
   ============================================ */
.customer-account-login .modern-login .login-header {
    text-align: center;
    margin-bottom: 35px;
}

.customer-account-login .modern-login .login-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.customer-account-login .modern-login .login-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Hide old block title */
.customer-account-login .modern-login .block-title {
    display: none;
}

/* ============================================
   FORM FIELDS - Underline style
   ============================================ */
.customer-account-login .modern-login .fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.customer-account-login .modern-login .field {
    margin-bottom: 25px;
}

.customer-account-login .modern-login .field > .label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.customer-account-login .modern-login .field > .label span {
    color: #333;
}

.customer-account-login .modern-login .field .control input.input-text {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #f5f5f5;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.customer-account-login .modern-login .field .control input.input-text::placeholder {
    color: #999;
}

.customer-account-login .modern-login .field .control input.input-text:hover {
    background: #efefef;
}

.customer-account-login .modern-login .field .control input.input-text:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.3);
}

/* ============================================
   FORGOT PASSWORD LINK
   ============================================ */
.customer-account-login .modern-login .forgot-password-wrapper {
    text-align: right;
    margin-bottom: 25px;
    margin-top: -10px;
}

.customer-account-login .modern-login .forgot-password-wrapper .action.remind {
    color: #d60b15;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.customer-account-login .modern-login .forgot-password-wrapper .action.remind:hover {
    color: #b80a12;
    text-decoration: none;
}

/* Hide show password checkbox */
.customer-account-login .modern-login .field.choice {
    display: none;
}

/* ============================================
   LOGIN BUTTON - Pill shape, yellow/orange
   ============================================ */
.customer-account-login .modern-login .actions-toolbar {
    margin-top: 10px;
}

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

.customer-account-login .modern-login .actions-toolbar .primary button.action.login {
    width: 100%;
    background: #d60b15;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: none;
}

.customer-account-login .modern-login .actions-toolbar .primary button.action.login:hover {
    background: #b80a12;
    transform: translateY(-1px);
}

.customer-account-login .modern-login .actions-toolbar .primary button.action.login:active {
    transform: translateY(0);
}

/* Hide secondary actions in login block */
.customer-account-login .modern-login .actions-toolbar .secondary {
    display: none;
}

/* ============================================
   NEW CUSTOMER SECTION
   ============================================ */
.customer-account-login .modern-register {
    margin-top: 25px;
    text-align: center;
}

.customer-account-login .modern-register .block-title {
    display: none;
}

.customer-account-login .modern-register .block-content {
    padding: 0;
}

.customer-account-login .modern-register .create-account-text {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
}

.customer-account-login .modern-register .actions-toolbar .primary {
    width: 100%;
}

.customer-account-login .modern-register .action.create.primary {
    display: block;
    width: 100%;
    background: transparent;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.customer-account-login .modern-register .action.create.primary:hover {
    border-color: #d60b15;
    color: #d60b15;
}

/* ============================================
   ERROR MESSAGES
   ============================================ */
.customer-account-login .modern-login .field .mage-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.customer-account-login .modern-login .field._error .control input.input-text {
    background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.3);
}

/* Page messages */
.customer-account-login .message.error {
    background: #fff5f5;
    border: 1px solid #ffdddd;
    color: #c00;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.customer-account-login .message.success {
    background: #f0fff0;
    border: 1px solid #c3e6c3;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ============================================
   HIDE PAGE TITLE
   ============================================ */
.customer-account-login .page-title-wrapper {
    display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .customer-account-login .column.main {
        padding: 40px 15px;
    }

    .customer-account-login .login-container {
        padding: 30px 25px;
        border-radius: 20px;
    }

    .customer-account-login .modern-login .login-title {
        font-size: 24px;
    }

    .customer-account-login .modern-login .field .control input.input-text {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ============================================
   FORGOT PASSWORD PAGE
   ============================================ */
.customer-account-forgotpassword .column.main {
    background: #f5f5f5;
    padding: 60px 20px;
    min-height: 60vh;
}

/* Style page title */
.customer-account-forgotpassword .page-title-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.customer-account-forgotpassword .page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Form container */
.customer-account-forgotpassword .form.password.forget {
    max-width: 450px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 25px !important;
    padding: 40px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 0 !important;
    overflow: hidden;
}

/* Fieldset */
.customer-account-forgotpassword .form.password.forget .fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Note field (instruction text) */
.customer-account-forgotpassword .form.password.forget .field.note {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Field */
.customer-account-forgotpassword .form.password.forget .field.email {
    margin-bottom: 25px;
}

.customer-account-forgotpassword .form.password.forget .field > .label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Input */
.customer-account-forgotpassword .form.password.forget .field .control input.input-text {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #f5f5f5;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.customer-account-forgotpassword .form.password.forget .field .control input.input-text:hover {
    background: #efefef;
}

.customer-account-forgotpassword .form.password.forget .field .control input.input-text:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(214, 11, 21, 0.2);
}

/* Actions toolbar */
.customer-account-forgotpassword .form.password.forget .actions-toolbar {
    margin-top: 10px;
}

.customer-account-forgotpassword .form.password.forget .actions-toolbar .primary {
    width: 100%;
}

.customer-account-forgotpassword .form.password.forget .actions-toolbar .primary button.action.submit {
    width: 100%;
    background: #d60b15;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: none;
}

.customer-account-forgotpassword .form.password.forget .actions-toolbar .primary button.action.submit:hover {
    background: #b80a12;
    transform: translateY(-1px);
}

.customer-account-forgotpassword .form.password.forget .actions-toolbar .primary button.action.submit:active {
    transform: translateY(0);
}

/* Secondary (Back to login link) */
.customer-account-forgotpassword .form.password.forget .actions-toolbar .secondary {
    display: block !important;
    text-align: center;
    margin-top: 15px;
}

.customer-account-forgotpassword .form.password.forget .actions-toolbar .secondary .action.back {
    display: inline !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #d60b15;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.customer-account-forgotpassword .form.password.forget .actions-toolbar .secondary .action.back:hover {
    color: #b80a12;
    text-decoration: underline;
    background: none !important;
}

/* Hide external back-to-login container (not needed) */
.customer-account-forgotpassword .back-to-login-container {
    display: none;
}

/* Error Messages */
.customer-account-forgotpassword .form.password.forget .field .mage-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.customer-account-forgotpassword .form.password.forget .field._error .control input.input-text {
    background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.3);
}

.customer-account-forgotpassword .message.error {
    max-width: 450px;
    margin: 0 auto 20px;
    background: #fff5f5;
    border: 1px solid #ffdddd;
    color: #c00;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.customer-account-forgotpassword .message.success {
    max-width: 450px;
    margin: 0 auto 20px;
    background: #f0fff0;
    border: 1px solid #c3e6c3;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .customer-account-forgotpassword .column.main {
        padding: 40px 15px;
    }

    .customer-account-forgotpassword .form.password.forget {
        padding: 30px 25px;
        border-radius: 20px !important;
    }

    .customer-account-forgotpassword .page-title {
        font-size: 24px;
    }

    .customer-account-forgotpassword .form.password.forget .field .control input.input-text {
        font-size: 16px;
    }
}

/* ============================================
   REGISTRATION PAGE
   ============================================ */
.customer-account-create .column.main {
    background: #f5f5f5;
    padding: 60px 20px;
    min-height: 60vh;
}

/* Page title */
.customer-account-create .page-title-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.customer-account-create .page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Form container */
.customer-account-create .form-create-account {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 25px !important;
    padding: 40px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 0 !important;
}

/* Fieldset */
.customer-account-create .form-create-account .fieldset {
    border: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.customer-account-create .form-create-account .fieldset:last-of-type {
    margin-bottom: 0;
}

/* Legend (section titles) */
.customer-account-create .form-create-account .fieldset > .legend {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 0;
    margin: 0 0 20px 0;
    border: none;
    width: 100%;
}

.customer-account-create .form-create-account .fieldset > .legend + br {
    display: none;
}

/* Fields */
.customer-account-create .form-create-account .field {
    margin-bottom: 20px;
}

.customer-account-create .form-create-account .field > .label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Inputs */
.customer-account-create .form-create-account .field .control input.input-text,
.customer-account-create .form-create-account .field .control input[type="text"],
.customer-account-create .form-create-account .field .control input[type="email"],
.customer-account-create .form-create-account .field .control input[type="password"],
.customer-account-create .form-create-account .field .control input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #f5f5f5;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.customer-account-create .form-create-account .field .control input:hover {
    background: #efefef;
}

.customer-account-create .form-create-account .field .control input:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(214, 11, 21, 0.2);
}

/* Select dropdowns */
.customer-account-create .form-create-account .field .control select {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #f5f5f5;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    cursor: pointer;
}

.customer-account-create .form-create-account .field .control select:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(214, 11, 21, 0.2);
}

/* Checkbox fields */
.customer-account-create .form-create-account .field.choice {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.customer-account-create .form-create-account .field.choice input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #d60b15;
    cursor: pointer;
}

.customer-account-create .form-create-account .field.choice .label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    color: #555;
    font-size: 14px;
}

/* Password strength meter */
.customer-account-create .form-create-account #password-strength-meter-container {
    margin-top: 8px;
}

.customer-account-create .form-create-account .password-strength-meter {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.customer-account-create .form-create-account #password-strength-meter-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Actions toolbar */
.customer-account-create .form-create-account .actions-toolbar {
    margin-top: 25px;
}

.customer-account-create .form-create-account .actions-toolbar .primary {
    width: 100%;
}

.customer-account-create .form-create-account .actions-toolbar .primary button.action.submit {
    width: 100%;
    background: #d60b15;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: none;
}

.customer-account-create .form-create-account .actions-toolbar .primary button.action.submit:hover {
    background: #b80a12;
    transform: translateY(-1px);
}

.customer-account-create .form-create-account .actions-toolbar .primary button.action.submit:active {
    transform: translateY(0);
}

/* Back link */
.customer-account-create .form-create-account .actions-toolbar .secondary {
    text-align: center;
    margin-top: 20px;
}

.customer-account-create .form-create-account .actions-toolbar .secondary .action.back {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.customer-account-create .form-create-account .actions-toolbar .secondary .action.back:hover {
    color: #d60b15;
}

/* Error messages */
.customer-account-create .form-create-account .field .mage-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.customer-account-create .form-create-account .field._error .control input {
    background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.3);
}

.customer-account-create .message.error {
    max-width: 500px;
    margin: 0 auto 20px;
    background: #fff5f5;
    border: 1px solid #ffdddd;
    color: #c00;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.customer-account-create .message.success {
    max-width: 500px;
    margin: 0 auto 20px;
    background: #f0fff0;
    border: 1px solid #c3e6c3;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

/* Back to login link - inside the form */
.customer-account-create .form-create-account .actions-toolbar .secondary {
    display: block !important;
    text-align: center;
    margin-top: 15px;
}

.customer-account-create .form-create-account .actions-toolbar .secondary > span {
    color: #666;
    font-size: 14px;
}

.customer-account-create .form-create-account .actions-toolbar .secondary .action.back {
    display: inline !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #d60b15;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    margin-left: 5px;
}

.customer-account-create .form-create-account .actions-toolbar .secondary .action.back:hover {
    color: #b80a12;
    text-decoration: underline;
    background: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    .customer-account-create .column.main {
        padding: 40px 15px;
    }

    .customer-account-create .form-create-account {
        padding: 30px 25px;
        border-radius: 20px !important;
    }

    .customer-account-create .page-title {
        font-size: 24px;
    }

    .customer-account-create .form-create-account .field .control input {
        font-size: 16px;
    }
}
