/* ============================================================
   ARYAGNI CRM — Apple Business Manager-style Login (Light)
   Matches appleid.apple.com / business.apple.com sign-in design:
   white background, centered white card, SF Pro type, Apple blue.
============================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg:          #ffffff;
    --card-bg:     #ffffff;
    --card-border: #d2d2d7;

    --blue:        #16A34A;
    --blue-hover:  #15803D;
    --blue-press:  #14672F;

    --text-primary:   #1d1d1f;
    --text-secondary: #6e6e73;

    --input-bg:       #ffffff;
    --input-border:   #d2d2d7;
    --input-focus:    #16A34A;

    --radius-card:    18px;
    --radius-input:   10px;
    --radius-btn:     980px; /* pill */

    --font: -apple-system, "SF Pro Display", "SF Pro Text",
            BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

html, body {
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    font-family: var(--font);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px;
}

/* ============================================================
   CARD
============================================================ */

.abm-bg {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.abm-card {
    width: 100%;
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 44px 40px 40px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

/* ============================================================
   LOGO / ICON
============================================================ */

.abm-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.abm-logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 13px; /* iOS app-icon squircle */
    background: linear-gradient(145deg, #8a8a8e, #58585c);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.5px;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */

.abm-title {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.abm-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    letter-spacing: 0.1px;
}

.abm-email-preview {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    word-break: break-all;
}

/* ============================================================
   INPUT
============================================================ */

.abm-field {
    margin-bottom: 16px;
    text-align: left;
}

.abm-input {
    width: 100%;
    height: 48px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-input);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 15px;
    padding: 0 14px;
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none;
}

.abm-input::placeholder {
    color: #a1a1a6;
}

.abm-input:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(0,113,227,.18);
}

.abm-input:-webkit-autofill,
.abm-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 40px #ffffff inset;
    -webkit-text-fill-color: var(--text-primary);
    transition: background-color 9999s ease-in-out;
}

/* ============================================================
   PRIMARY BUTTON
============================================================ */

.abm-btn {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 8px;
    border: none;
    border-radius: var(--radius-btn);
    background: var(--blue);
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

.abm-btn:hover {
    background: var(--blue-hover);
}

.abm-btn:active {
    background: var(--blue-press);
    transform: scale(.985);
}

.abm-btn:disabled {
    opacity: .55;
    cursor: default;
}

/* ============================================================
   ERROR TEXT
============================================================ */

.abm-error {
    color: #d70015;
    font-size: 12.5px;
    line-height: 1.4;
    margin: -10px 0 14px;
    text-align: left;
}

/* ============================================================
   REMEMBER
============================================================ */

.abm-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
}

.abm-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
    cursor: pointer;
}

/* ============================================================
   LINK BUTTON
============================================================ */

.abm-link-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    background: none;
    border: none;
    color: var(--blue);
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    transition: opacity .15s;
}

.abm-link-btn:hover {
    opacity: .75;
    text-decoration: underline;
}

/* ============================================================
   FOOTER
============================================================ */

.abm-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.abm-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .15s;
}

.abm-footer a:hover {
    color: var(--text-primary);
}

.abm-dot {
    margin: 0 6px;
    opacity: .6;
}

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

@media (max-width: 440px) {
    .abm-card {
        padding: 36px 24px 32px;
        border-radius: 14px;
        border: none;
        box-shadow: none;
    }

    .abm-title {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
    }
}
