/* ==================================================
   Android‑style Login – Material Design
   ================================================== */

/* Font – use system default for a native feel */
.sum-auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.02);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, sans-serif;
    box-sizing: border-box;
    color: #202124;
}

/* Logo / header */
.sum-auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.sum-auth-logo h2 {
    margin: 0;
    font-weight: 400;
    font-size: 28px;
    color: #1a73e8; /* Google blue – accent */
    letter-spacing: -0.5px;
}

/* Optional helper text (like "For new users...") */
.sum-auth-subtitle {
    text-align: center;
    color: #5f6368;
    font-size: 14px;
    margin: -16px 0 24px;
}

/* Google Sign‑in button (exact match to Android Google button) */
.sum-google-signin {
    margin-bottom: 24px;
}
.sum-google-signin a.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    color: #3c4043;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.sum-google-signin a.button:hover {
    background: #f8f9fa;
    border-color: #bdc1c6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.sum-google-signin svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: block;
}

/* Divider with "Or sign in with password" */
.sum-manual-toggle-row {
    text-align: center;
    margin: 24px 0;
    position: relative;
    font-size: 14px;
    color: #5f6368;
}
.sum-manual-toggle-row::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 1;
}
.sum-manual-toggle-row a {
    color: #1a73e8;
    text-decoration: none;
    background: #fff;
    padding: 0 12px;
    position: relative;
    z-index: 2;
    font-weight: 500;
}
.sum-manual-toggle-row a:hover {
    text-decoration: underline;
}

/* Manual login form */
#sum-login-form {
    margin-top: 8px;
}
.sum-form-row {
    margin-bottom: 20px;
}
.sum-form-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.sum-auth-container input[type="text"],
.sum-auth-container input[type="password"],
.sum-auth-container input[type="email"],
.sum-auth-container input[type="tel"],
.sum-auth-container textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.sum-auth-container input:focus,
.sum-auth-container textarea:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

/* Remember me checkbox */
.sum-remember-me {
    margin: 16px 0 24px;
}
.sum-remember-me label {
    display: flex;
    align-items: center;
    font-weight: normal;
    color: #3c4043;
    cursor: pointer;
}
.sum-remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: #1a73e8;
}

/* Submit button */
.sum-submit button {
    width: 100%;
    padding: 14px;
    background: #1a73e8;
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.sum-submit button:hover {
    background: #1669c1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.sum-submit button:disabled {
    background: #b3cde0;
    box-shadow: none;
    cursor: not-allowed;
}

/* OTP field & resend */
#sum-otp-row {
    margin-top: 8px;
}
#sum-otp-resend-row {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}
#sum-resend-otp-link.disabled {
    color: #aaa;
    pointer-events: none;
}
#sum-otp-timer {
    margin-left: 8px;
    color: #5f6368;
}

/* Navigation links (create account / forgot password) */
#sum-login-nav {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 14px;
}
#sum-login-nav a {
    color: #1a73e8;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
}
#sum-login-nav a:hover {
    text-decoration: underline;
}
#sum-login-nav a:not(:first-child) {
    border-left: 1px solid #e0e0e0;
    padding-left: 12px;
}

/* Messages */
#sum-messages {
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid transparent;
}
#sum-messages.error {
    background: #fce8e6;
    color: #c5221f;
    border-left-color: #c5221f;
}
#sum-messages.success {
    background: #e6f4ea;
    color: #137333;
    border-left-color: #137333;
}