/* Google Auth Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #fff;
    color: #202124;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.google-auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.google-auth-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 48px 40px 36px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(0, 0, 0, 0.08);
}

.google-auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.google-logo {
    width: auto;
    height: 75px;
    max-width: 200px;
    margin-bottom: 16px;
    object-fit: contain;
}

.google-title {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
    line-height: 1.3333;
    font-family: 'Exo 2', sans-serif;
}

.google-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: #202124;
    line-height: 1.5;
    margin-bottom: 0;
    font-family: 'Anek Telugu', sans-serif;
}

/* Desktop/Mobile Title and Subtitle Toggle */
.mobile-title,
.mobile-subtitle {
    display: none;
}

.desktop-title,
.desktop-subtitle {
    display: block;
}

.google-form {
    margin-top: 24px;
}

.google-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.google-form-group {
    position: relative;
    flex: 1;
}

.google-form-group.google-half {
    flex: 1;
}

.google-input {
    width: 100%;
    padding: 13px 15px;
    font-size: 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s;
    background: #fff;
    color: #202124;
    font-family: 'Roboto', Arial, sans-serif;
}

.google-input::placeholder {
    color: transparent;
}

.google-input:focus {
    border-color: #1a73e8;
    border-width: 2px;
    padding: 12px 14px;
}

.google-input:focus + .google-label,
.google-input:not(:placeholder-shown) + .google-label {
    transform: translateY(-32px) scale(0.75);
    color: #1a73e8;
    background: #fff;
    padding: 0 4px;
}

.google-label {
    position: absolute;
    left: 15px;
    top: 14px;
    color: #5f6368;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.2s;
    transform-origin: left top;
}

.google-helper-text {
    display: block;
    font-size: 12px;
    color: #5f6368;
    margin-top: 6px;
    margin-left: 15px;
}

/* Password Toggle */
.google-input-password {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    font-size: 18px;
}

.password-toggle:hover {
    color: #202124;
}

.password-toggle i {
    pointer-events: none;
}

.google-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235f6368' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.google-select:focus + .google-label,
.google-select:valid + .google-label {
    transform: translateY(-32px) scale(0.75);
    color: #1a73e8;
    background: #fff;
    padding: 0 4px;
}

.google-link-group {
    margin-bottom: 24px;
}

.google-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.google-link:hover {
    text-decoration: underline;
}

.google-info-text {
    margin-bottom: 24px;
}

.google-info-text p {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.4286;
}

.google-password-info {
    margin-top: -16px;
    margin-bottom: 24px;
}

.google-password-info p {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.3333;
}

.google-terms {
    margin-bottom: 24px;
}

.google-terms p {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.3333;
}

.error-message {
    color: #d93025;
    font-size: 12px;
    margin-bottom: 16px;
    display: none;
}

.error-message.show {
    display: block;
}

.google-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.google-btn-primary {
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
    font-family: 'Roboto', Arial, sans-serif;
}

.google-btn-primary:hover {
    background-color: #1765cc;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.google-btn-primary:active {
    background-color: #1557b0;
}

.google-btn-secondary {
    background-color: transparent;
    color: #1a73e8;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Roboto', Arial, sans-serif;
}

.google-btn-secondary:hover {
    background-color: rgba(26,115,232,0.04);
}

.google-btn-secondary:active {
    background-color: rgba(26,115,232,0.1);
}


/* Multi-step Registration */
.register-step {
    display: none;
}

.register-step.active {
    display: block;
}

/* Email Verification Step */
.verification-header {
    text-align: center;
    margin-bottom: 32px;
}

.verification-title {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 12px;
    font-family: 'Exo 2', sans-serif;
}

.verification-subtitle {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
    font-family: 'Anek Telugu', sans-serif;
    font-weight: 300;
}

.verification-subtitle strong {
    color: #202124;
    font-weight: 500;
}

.code-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #dadce0;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
    background: #f8f9fa;
    color: #202124;
    font-family: 'Roboto', monospace;
}

.code-input:focus {
    border-color: #1a73e8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.code-input.filled {
    background: #fff;
    border-color: #1a73e8;
}

.code-input.error {
    border-color: #d93025;
    background: #fce8e6;
}

.code-info {
    text-align: center;
    margin-bottom: 24px;
}

.code-info p {
    font-size: 14px;
    color: #5f6368;
    font-family: 'Anek Telugu', sans-serif;
    font-weight: 300;
}

.resend-section {
    text-align: center;
    margin-bottom: 24px;
}

.resend-section p {
    font-size: 14px;
    color: #5f6368;
    font-family: 'Anek Telugu', sans-serif;
}

.resend-btn {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}

.resend-btn:hover {
    text-decoration: underline;
}

.resend-btn:disabled {
    color: #9aa0a6;
    cursor: not-allowed;
}

/* Register Split Layout */
.register-card {
    max-width: 900px;
    display: flex;
    gap: 60px;
    padding: 48px;
}

.register-left {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.register-left .google-logo {
    margin-bottom: 24px;
}

.register-left .google-title {
    text-align: left;
    font-size: 28px;
    margin-bottom: 12px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
}

.register-left .google-subtitle {
    text-align: left;
    font-size: 15px;
    color: #5f6368;
    line-height: 1.6;
    font-family: 'Anek Telugu', sans-serif;
    font-weight: 300;
}

.register-right {
    flex: 1;
    min-width: 0;
}

/* Login Steps */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

.login-email-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f1f3f4;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #5f6368;
}

.login-email-display span {
    flex: 1;
    font-weight: 500;
    color: #202124;
}

.google-link-btn {
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.google-link-btn:hover {
    background: rgba(26, 115, 232, 0.1);
}

.google-link-btn i {
    font-size: 16px;
}

/* Checkbox Styles */
.google-checkbox-group {
    margin: 16px 0;
}

.google-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.google-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #5f6368;
    border-radius: 2px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s;
}

.google-checkbox input[type="checkbox"]:checked ~ .checkbox-custom {
    background: #1a73e8;
    border-color: #1a73e8;
}

.google-checkbox input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 14px;
    color: #5f6368;
}

.google-checkbox:hover .checkbox-custom {
    border-color: #1a73e8;
}

/* Responsive */
@media (max-width: 768px) {
    .google-auth-card {
        max-width: 100%;
        border: none;
        padding: 24px 20px;
    }

    .register-card {
        flex-direction: column;
        gap: 32px;
        padding: 24px 20px;
    }

    .register-left {
        flex: none;
        text-align: center;
    }

    .register-left .google-title,
    .register-left .google-subtitle {
        text-align: center;
    }

    /* Toggle desktop/mobile content */
    .desktop-title,
    .desktop-subtitle {
        display: none;
    }

    .mobile-title,
    .mobile-subtitle {
        display: block;
    }

    .mobile-title {
        font-size: 20px;
        white-space: nowrap;
    }

    .mobile-subtitle {
        font-size: 15px;
    }

    .register-right {
        flex: none;
    }

    .google-title {
        font-size: 20px;
    }

    .google-subtitle {
        font-size: 14px;
    }

    .google-form-row {
        flex-direction: column;
        gap: 24px;
    }

    .google-form-group.google-half {
        width: 100%;
    }

    .google-form-footer {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .google-btn-primary,
    .google-btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .google-auth-container {
        padding: 20px 10px;
    }

    .google-logo {
        height: 60px;
        max-width: 150px;
    }

    .google-title {
        font-size: 18px;
    }

    .google-input {
        font-size: 16px;
        padding: 11px 13px;
    }

    .google-input:focus {
        padding: 10px 12px;
    }

    .verification-title {
        font-size: 20px;
    }

    .verification-subtitle {
        font-size: 13px;
    }

    .code-input-container {
        gap: 8px;
    }

    .code-input {
        width: 42px;
        height: 52px;
        font-size: 20px;
    }
}
