/* ChatGPT Phishing Page - Main Stylesheet */
/* Cloned from chatgpt.com with modifications */

:root {
    --color-primary: #10a37f;
    --color-primary-hover: #0e8e6f;
    --color-primary-light: rgba(16, 163, 127, 0.1);
    --color-bg: #ffffff;
    --color-bg-secondary: #f7f7f8;
    --color-text: #343541;
    --color-text-secondary: #6e6e80;
    --color-border: #e5e5e5;
    --color-border-focus: #10a37f;
    --color-error: #dc2626;
    --color-success: #10a37f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 150ms ease;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.main-container {
    width: 100%;
    max-width: 420px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    border: 1px solid var(--color-border);
}

.auth-header {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.logo {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.auth-main {
    margin-bottom: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.user-avatar svg {
    width: 24px;
    height: 24px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-email {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.user-name {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input::placeholder {
    color: var(--color-text-secondary);
}

.form-input-otp {
    letter-spacing: 0.3em;
    text-align: center;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.toggle-visibility {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: color var(--transition);
}

.toggle-visibility:hover {
    color: var(--color-text);
}

.toggle-visibility svg {
    width: 20px;
    height: 20px;
}

.form-hint {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.forgot-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
}

.btn-full {
    width: 100%;
}

.btn-social {
    width: 100%;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    gap: 12px;
}

.btn-social:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-text-secondary);
}

.btn-social svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-loader {
    display: flex;
    align-items: center;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.auth-footer p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    font-size: 13px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover {
    color: var(--color-primary);
}

.help-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
}

.help-options a {
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
}

.help-options a:hover {
    text-decoration: underline;
}

.auth-divider span {
    background: var(--color-bg);
    padding: 0 16px;
}

@media (max-width: 480px) {
    .main-container {
        padding: 32px 24px;
        margin: 16px;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .help-options {
        flex-direction: column;
        align-items: center;
    }
}