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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
}

h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

h2 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 500;
}

h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 500;
}

.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 30px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-btn:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.apple-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: #000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.apple-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.apple-icon {
    width: 20px;
    height: 20px;
}

.apple-icon path {
    fill: #fff;
}

.facebook-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: #1877F2;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.facebook-btn:hover {
    background: #166FE5;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.4);
}

.facebook-icon {
    width: 20px;
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.5);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.divider span {
    padding: 0 16px;
    font-size: 12px;
}

.info-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.error-message {
    background: rgba(255, 87, 87, 0.2);
    border: 1px solid rgba(255, 87, 87, 0.5);
    color: #ff5757;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background: rgba(87, 255, 87, 0.2);
    border: 1px solid rgba(87, 255, 87, 0.5);
    color: #57ff57;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
}

.footer {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-align: center;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #00ff88;
}

/* Loading */
.loading {
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* Success/Error Content */
.success-content,
.error-content {
    padding: 20px 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(87, 255, 87, 0.2);
    color: #57ff57;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.error-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 87, 87, 0.2);
    color: #ff5757;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* User Info */
.user-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.info-row .value {
    font-weight: 500;
    font-size: 13px;
}

.verified {
    color: #57ff57;
}

.not-verified {
    color: #ffaa57;
}

/* Token Section */
.token-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    text-align: left;
}

.token-section label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    display: block;
}

.token-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-display code {
    flex: 1;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    color: #00ff88;
    word-break: break-all;
    background: rgba(0, 255, 136, 0.1);
    padding: 8px;
    border-radius: 4px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Verification Section */
.verification-section {
    background: rgba(255, 170, 87, 0.1);
    border: 1px solid rgba(255, 170, 87, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.verification-section p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.verify-btn {
    padding: 10px 20px;
    background: #ffaa57;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.verify-btn:hover {
    background: #ff9933;
}

/* Buttons */
.logout-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 87, 87, 0.2);
    border: 1px solid rgba(255, 87, 87, 0.5);
    color: #ff5757;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
}

.logout-btn:hover {
    background: rgba(255, 87, 87, 0.3);
}

.retry-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 16px;
    transition: all 0.2s;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Pending Link Content */
.pending-link-content {
    padding: 20px 0;
}

.pending-link-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(87, 170, 255, 0.2);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.link-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
}

.link-note a {
    color: #57aaff;
    text-decoration: none;
}

.link-note a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .input-group {
        flex-direction: column;
    }
}
