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

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
    color: #202124;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(66, 133, 244, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 168, 83, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.unified-panel {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(60, 64, 67, 0.15),
        0 2px 8px rgba(60, 64, 67, 0.1);
    border: 1px solid rgba(218, 220, 224, 0.6);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.google-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px 32px;
    background: #fff;
    border-bottom: 1px solid #e8eaed;
}

.google-logo {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.panel {
    width: 100%;
    background: #fff;
    padding: 40px 40px 48px;
}

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

h1 {
    color: #202124;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: -0.3px;
}

.subtitle {
    color: #5f6368;
    font-size: 15px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

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

label {
    display: block;
    color: #202124;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.1px;
}

input[type="email"] {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: #fff;
}

input[type="email"]:hover {
    border-color: #80868b;
    box-shadow: 0 1px 4px rgba(32, 33, 36, 0.1);
}

input[type="email"]:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 
        0 0 0 3px rgba(66, 133, 244, 0.1),
        0 1px 4px rgba(32, 33, 36, 0.1);
}

/* reCAPTCHA Style */
.recaptcha-container {
    background: #f9f9f9;
    border: 2px solid #dadce0;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recaptcha-container:hover {
    border-color: #bdc1c6;
    box-shadow: 0 1px 4px rgba(60, 64, 67, 0.1);
}

.recaptcha-container.verified {
    border-color: #34a853;
    background: #f0f8f4;
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.2);
}

.recaptcha-checkbox {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.checkbox-border {
    width: 26px;
    height: 26px;
    border: 2px solid #5f6368;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.recaptcha-checkbox:hover .checkbox-border {
    border-color: #202124;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.checkbox-checkmark {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.recaptcha-checkbox.checked .checkbox-border {
    background: #34a853;
    border-color: #34a853;
    box-shadow: 0 2px 6px rgba(52, 168, 83, 0.3);
}

.recaptcha-checkbox.checked .checkbox-checkmark {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text {
    font-size: 16px;
    color: #202124;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.recaptcha-logo {
    margin-left: auto;
    text-align: right;
    font-size: 10px;
    line-height: 1.5;
}

.recaptcha-logo-text {
    color: #555;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.recaptcha-logo-small {
    color: #999;
    font-size: 9px;
}

.error-message {
    color: #d93025;
    font-size: 12px;
    margin-top: 8px;
    display: block;
    min-height: 20px;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    padding: 11px 24px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    min-height: 42px;
    letter-spacing: 0.25px;
    box-shadow: 0 1px 3px rgba(26, 115, 232, 0.2);
}

.submit-btn:hover:not(:disabled) {
    background: #1765cc;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
    background: #1557b0;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

.submit-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    background: #1a73e8;
    transform: none;
    box-shadow: none;
}

.success-message {
    text-align: center;
    padding: 24px;
    color: #34a853;
    font-size: 15px;
    line-height: 1.6;
}

.success-message p {
    margin: 0;
    color: #5f6368;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

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

.modal {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    box-shadow: 
        0 16px 48px rgba(60, 64, 67, 0.3),
        0 4px 16px rgba(60, 64, 67, 0.2);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(218, 220, 224, 0.5);
}

.modal-header {
    padding: 28px 28px 20px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 400;
    color: #202124;
    margin: 0;
    letter-spacing: -0.3px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #5f6368;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: #f1f3f4;
    color: #202124;
}

.modal-content {
    padding: 28px;
}

.modal-description {
    color: #5f6368;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-steps {
    margin-left: 24px;
    margin-bottom: 28px;
    color: #202124;
}

.modal-steps li {
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 15px;
}

kbd {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 6px;
    padding: 5px 10px;
    font-family: 'Google Sans', sans-serif;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2);
    margin: 0 3px;
    color: #202124;
    font-weight: 500;
}

.command-box {
    background: #f8f9fa;
    border: 1.5px solid #dadce0;
    border-radius: 8px;
    padding: 18px;
    margin-top: 20px;
    margin-bottom: 28px;
}

.command-box code {
    display: block;
    color: #202124;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 14px;
    line-height: 1.7;
}

.copy-btn {
    width: 100%;
    padding: 12px 24px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    letter-spacing: 0.25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

.copy-btn svg {
    width: 18px;
    height: 18px;
}

.copy-btn:hover {
    background: #1765cc;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    transform: translateY(-1px);
}

.copy-btn:active {
    background: #1557b0;
    transform: translateY(0);
}

.copy-btn.copied {
    background: #34a853;
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.3);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-btn-primary {
    padding: 12px 28px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    letter-spacing: 0.25px;
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

.modal-btn-primary:hover {
    background: #1765cc;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    transform: translateY(-1px);
}

.modal-btn-primary:active {
    background: #1557b0;
    transform: translateY(0);
}
