html {
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: auto;
    background-color: #ffffff;
}

.login-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 37.5rem; 
    background: white;
    border-radius: 0.625rem; 
    padding: 1.25rem; 

}

.login-logo {
    flex: 1;
    text-align: center;
    padding-right: 1.25rem; 
}

.login-logo img {
    max-width: 100%;
    height: auto;
}

.vertical-line {
    width: 0.0625rem; 
    height: 18.75rem; 
    background-color: #ccc;
    display: flex;
}

.login-form {
    flex: 1;
    padding: 1.5625rem; 
}

.form-group {
    margin-bottom: 0.9375rem; 
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.3125rem; 
    font-weight: normal;
}

.phone-input-container {
    display: flex;
    align-items: center;
}

.phone-input-container input {
    height: 2.1875rem; 
    padding: 0.5rem; 
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    box-sizing: border-box;
}

#country-code {
    width: 3rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    pointer-events: none; 
    background-color: #f0f0f0; 
}

#phone {
    flex: 1;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.separator {
    width: 0.0625rem;
    height: 2.1875rem;
    background-color: #ccc;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: 10px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 14px;
    background-color: white;
    color: #555;
}

.google-login-btn img {
    width: 1.25rem; 
    vertical-align: middle;
    margin-right: 0.5rem; 
}

.google-login-btn:hover {
    background-color: #e9e9e9;
    color: #555;
}

.no-gmail-hint {
    margin: 6px 0 10px;
    font-size: 11px;
    color: #888;
    text-align: center;
}

.signup-heading {
    margin: 0 0 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    text-align: center;
}

.signup-subtext {
    margin: 0 0 16px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

#churchNameLabel {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #1d4261;
    margin-top: 4px;
}

.signup-login-hint {
    margin-top: 16px;
    font-size: 12px;
    color: #888;
    text-align: center;
}

.tos {
    font-size: 10px;
}

/* Button loading spinner */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.login-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* In-app browser warning banner */
#iab-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 37.5rem;
    background: #fff8e1;
    border: 1px solid #f9a825;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #5d4037;
    box-sizing: border-box;
}

.iab-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.iab-text {
    flex: 1;
    line-height: 1.5;
}

.iab-copy-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    background: #f9a825;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    align-self: center;
}

.iab-copy-btn:hover {
    background: #e65100;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0.625rem; 
    }

    .login-container {
        max-width: 100%;
        flex-direction: column;
    }

    .login-form {
        width: 100%;
    }

    .login-logo img {
        max-width: 100%;
        height: auto;
        margin: 0 0 0 0.6875rem;
    }

    .form-group input {
        width: 100%;
    }

    .login-btn, .google-login-btn {
        width: 100%;
    }

    .vertical-line {
        display: none;
    }
}
