/* Crusher - Dark theme dashboard */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0e1a;
    color: #e0e0e0;
    min-height: 100vh;
}

/* Dashboard layout */

.dashboard {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 48px;
}

.brand {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.beta-badge {
    display: inline-block;
    font-size: 0.5em;
    font-weight: 600;
    color: #f0c040;
    background: rgba(240, 192, 64, 0.15);
    border: 1px solid rgba(240, 192, 64, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 8px;
    vertical-align: super;
    letter-spacing: 0.05em;
}

.tagline {
    margin-top: 12px;
    font-size: 1.1rem;
    color: #8890a0;
}

/* Tool cards */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #141828;
    border: 1px solid #1e2440;
    border-radius: 10px;
    padding: 28px 24px;
    transition: border-color 0.2s, transform 0.15s;
}

.tool-card:hover {
    border-color: #3a4a80;
    transform: translateY(-2px);
}

.tool-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.tool-desc {
    font-size: 0.95rem;
    color: #8890a0;
    line-height: 1.5;
}

/* Auth pages */

.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 60px 24px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 32px;
}

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

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

.form-label {
    font-size: 0.9rem;
    color: #8890a0;
    font-weight: 500;
}

.form-input {
    padding: 10px 14px;
    background: #141828;
    border: 1px solid #1e2440;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3a4a80;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #1a1e34;
    border: 1px solid #1e2440;
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: #8890a0;
    font-size: 1rem;
    font-family: inherit;
}

.input-group .form-input {
    border-radius: 0 6px 6px 0;
    flex: 1;
}

.form-hint {
    font-size: 0.8rem;
    color: #5a6a7a;
}

.form-optional {
    color: #5a6a7a;
    font-weight: 400;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: #3a4a80;
    color: #ffffff;
}

.btn-primary:hover {
    background: #4a5a90;
}

/* btn--processing styles moved to shared/css/buttons.css */

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.alert-error {
    background: rgba(220, 60, 60, 0.15);
    border: 1px solid rgba(220, 60, 60, 0.3);
    color: #e06060;
}

.auth-link {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #8890a0;
}

.auth-link a {
    color: #6a8ac0;
    text-decoration: none;
}

.auth-link a:hover {
    color: #8aaae0;
    text-decoration: underline;
}

/* Verification page */

.auth-instructions {
    text-align: center;
    color: #8890a0;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-success {
    background: rgba(60, 180, 80, 0.15);
    border: 1px solid rgba(60, 180, 80, 0.3);
    color: #60c060;
}

.alert-info {
    background: rgba(60, 130, 220, 0.15);
    border: 1px solid rgba(60, 130, 220, 0.3);
    color: #6090d0;
}

.resend-form {
    margin-top: 16px;
}

.link-btn {
    background: none;
    border: none;
    color: #6a8ac0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
    padding: 0;
}

.link-btn:hover {
    color: #8aaae0;
    text-decoration: underline;
}

/* Version badge (production only) */

.version-badge {
    position: fixed;
    bottom: 8px;
    right: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    font-family: monospace;
    pointer-events: none;
    user-select: none;
    z-index: 9999;
}
