/* ========================================
   Customer Login and Registration Page Styles
   ======================================== */

/* Background styling for both pages */
.customer-account-login .page-main,
.customer-account-create .page-main {
    background-image: url('../images/bg-login.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
}

.customer-account-login .main.content,
.customer-account-create .main.content {
    padding: 0;
}

/* Container wrapper - shared between login and register */
.login-viewport-wrapper,
.customer-account-create .registration-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 75vh;
    padding: 2rem;
}

/* Form card styling - shared base styles */
.login-form-card,
.customer-account-create .registration-container form {
    background: white;
    border-radius: 0.5rem;
    padding: 35px 50px;
    margin-left: 50px;
}

/* Login specific - fixed width */
.login-form-card {
    width: 395px;
}

/* Register specific - flexible width for 2-column grid */
.customer-account-create .registration-container form {
    width: auto;
    max-width: 900px;
}

/* ========================================
   Amasty Social Login Styling
   ======================================== */

/* Social login container inside form card */
.login-form-card .amsl-social-wrapper,
.customer-account-create .amsl-social-wrapper {
    margin-top: 1.5rem;
    width: 100%;
}

/* Or separator styling */
.login-form-card .amsl-separator,
.customer-account-create .amsl-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
    border-top: 1px solid #e5e7eb;
}

.login-form-card .amsl-separator .amsl-icon,
.customer-account-create .amsl-separator .amsl-icon {
    position: relative;
    top: -12px;
    background: white;
    padding: 0 10px;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Social login title */
.login-form-card .amsl-title,
.customer-account-create .amsl-title {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.login-form-card .amsl-title.-short,
.customer-account-create .amsl-title.-short {
    display: none;
}

/* Social buttons wrapper */
.amsl-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.amsl-button-wrapper {
    flex: 1 1 auto;
    min-width: 150px;
}

/* Individual Social Button */
.amsl-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: #fff;
    gap: 8px;
}

.amsl-button:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Social Icons */
.amsl-social-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Specific Social Providers */
.amsl-button.-google .amsl-social-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path fill="%23EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/><path fill="%234285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/><path fill="%23FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"/><path fill="%2334A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/><path fill="none" d="M0 0h48v48H0z"/></svg>');
}

.amsl-button.-facebook .amsl-social-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%231877F2" d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>');
}

/* ========================================
   Form Input Styling
   ======================================== */

/* Input fields border-radius 12px - applies to both login and register */
.login-form-card input[type="email"],
.login-form-card input[type="password"],
.customer-account-create input[type="text"],
.customer-account-create input[type="email"],
.customer-account-create input[type="password"],
.customer-account-create input[type="tel"],
.customer-account-create input[type="date"],
.customer-account-create select,
.customer-account-create .form-input,
.customer-account-create .form-select {
    border-radius: 12px !important;
}

/* ========================================
   Registration Page Specific
   ======================================== */

/* Card fieldset styling */
.customer-account-create .registration-container .card {
    margin: 0;
    padding: 1.5rem;
}

/* Grid layout for 2-column form */
.customer-account-create .registration-container form>div.md\:grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .customer-account-create .registration-container form>div.md\:grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Typography */
.customer-account-create .registration-container form legend {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

/* Submit button */
.customer-account-create .registration-container form button[type="submit"],
.customer-account-create .registration-container form .action.submit {
    width: 100%;
    padding: 12px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 25px;
    text-transform: uppercase;
}

/* Actions toolbar */
.customer-account-create .registration-container form .actions-toolbar {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* ========================================
   Mobile Responsive (768px and below)
   ======================================== */

@media (max-width: 768px) {

    /* Container adjustments */
    .login-viewport-wrapper,
    .customer-account-create .registration-container {
        padding: 0;
        padding-top: 2rem;
        min-height: auto;
        align-items: flex-start;
    }

    /* Form card adjustments */
    .login-form-card,
    .customer-account-create .registration-container form {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding: 35px 20px;
    }

    /* Force single column grid on mobile */
    .customer-account-create .registration-container form>div.md\:grid {
        grid-template-columns: 1fr;
    }

    /* Reduce card padding on mobile */
    .customer-account-create .registration-container .card {
        padding: 1rem;
    }
}