/**
 * Modeo Account - Login/Register
 * 
 * Premium styles for login and registration page
 */

/* ========================================
   NOTICES WRAPPER
   ======================================== */

.woocommerce-account .woocommerce-notices-wrapper,
body.woocommerce-account-page .woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    text-align: center;
}

/* Hide WooCommerce notices immediately - they will be shown as toasts */
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-account-page .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce-account-page .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-account-page .woocommerce-notices-wrapper .woocommerce-info {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   LOGIN/REGISTER WRAPPER
   ======================================== */

.modeo-login-register-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ========================================
   2-COLUMN GRID
   ======================================== */

.login-register-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 991px) {
    .login-register-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ========================================
   FORM CONTAINERS
   ======================================== */

.form-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.form-container:hover {
    border-color: rgba(204, 22, 22, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
    .form-container {
        padding: 28px 20px;
        border-radius: 16px;
    }
}

/* ========================================
   FORM TITLES
   ======================================== */

.form-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.form-title .material-icons {
    font-size: 32px;
    color: #cc1616;
}

.form-description {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .form-title {
        font-size: 1.5rem;
    }

    .form-title .material-icons {
        font-size: 28px;
    }
}

/* ========================================
   FORM REMEMBER ME
   ======================================== */

.form-remember {
    margin-top: 16px;
    margin-bottom: 24px;
}

.form-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.form-remember input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: #cc1616;
}

/* ========================================
   LOST PASSWORD LINK
   ======================================== */

.lost_password {
    text-align: center;
    margin-top: 20px;
}

.lost_password a {
    color: #cc1616;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lost_password a:hover {
    color: #b31313;
    text-decoration: underline;
}

/* ========================================
   REGISTER COLUMN ACCENT
   ======================================== */

.register-column .form-container {
    background: linear-gradient(135deg, #ffffff 0%, rgba(204, 22, 22, 0.02) 100%);
    border-color: rgba(204, 22, 22, 0.08);
}

.register-column .form-container:hover {
    border-color: rgba(204, 22, 22, 0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
    .modeo-login-register-wrapper {
        margin: 40px auto;
    }
}

@media (max-width: 767px) {
    .modeo-login-register-wrapper {
        margin: 20px auto;
    }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.modeo-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 0.95rem;
    line-height: 1.5;
}

.modeo-toast--show {
    transform: translateX(0);
    opacity: 1;
}

.modeo-toast--error {
    background: #fef2f2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

.modeo-toast--success {
    background: #d1fae5;
    color: #047857;
    border-left: 4px solid #10b981;
}

.modeo-toast--info {
    background: rgba(204, 22, 22, 0.05);
    color: #cc1616;
    border-left: 4px solid #cc1616;
}

.modeo-toast .material-icons {
    font-size: 24px;
    flex-shrink: 0;
}

.modeo-toast--error .material-icons {
    color: #ef4444;
}

.modeo-toast--success .material-icons {
    color: #10b981;
}

.modeo-toast--info .material-icons {
    color: #cc1616;
}

.modeo-toast__message {
    flex: 1;
}

@media (max-width: 767px) {
    .modeo-toast {
        right: 15px;
        left: 15px;
        min-width: auto;
        max-width: none;
    }
}