/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* Site Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    min-height: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    font-size: 0.875em;
    font-weight: 600;
    text-decoration: none;
    color: #667eea;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-brand a:hover {
    color: #764ba2;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.nav-menu li {
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.8125em;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #667eea;
}

/* Page Container with Header */
body .container:first-of-type {
    padding-top: 20px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px 0;
}

/* Typography */
h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
}

h2 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #555;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Form elements */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e8ed;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #d1d8dd;
    transform: translateY(-1px);
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid;
}

.alert ul {
    margin: 10px 0 0 20px;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Link container */
.link-container {
    display: flex;
    gap: 10px;
}

.link-container input {
    flex: 1;
}

.link-container .btn {
    flex-shrink: 0;
}

/* Note content display */
.note-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    margin: 20px 0;
    word-wrap: break-word;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

/* Info box */
.info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
}

.info-box ul {
    margin: 15px 0 0 20px;
}

.info-box li {
    margin: 8px 0;
    color: #555;
}

/* Icons */
.success-icon,
.error-icon {
    font-size: 4em;
    text-align: center;
    margin-bottom: 20px;
}

.success-icon {
    color: #28a745;
}

.error-icon {
    color: #dc3545;
}

/* Password reminder */
.password-reminder {
    margin-top: 10px;
    font-weight: 600;
}

/* Email notification */
.email-notification {
    margin-top: 10px;
    font-weight: 600;
}

/* CAPTCHA styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-image {
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    display: block;
}

.btn-refresh {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-refresh:hover {
    background: #5a6268;
    transform: rotate(90deg);
}

/* Site Footer */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e1e8ed;
    margin-top: 60px;
    padding: 20px 0;
}

.footer-content {
    text-align: center;
    color: #666;
}

.footer-links {
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.footer-links .separator {
    margin: 0 10px;
    color: #ccc;
}

.footer-copyright {
    margin: 5px 0 0 0;
    font-size: 0.85em;
    color: #999;
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .main-nav {
        padding: 8px 0;
        min-height: 36px;
    }
    
    .nav-brand a {
        font-size: 0.9em;
    }
    
    .nav-menu {
        gap: 6px;
    }
    
    .nav-link {
        padding: 5px 10px;
        font-size: 0.8em;
    }
    
    body .container:first-of-type {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .captcha-image {
        width: 100%;
        max-width: 200px;
    }
    
    .site-footer {
        margin-top: 40px;
        padding: 15px 0;
    }
    
    .footer-links {
        font-size: 0.85em;
    }
    
    .footer-links .separator {
        margin: 0 5px;
    }
    
    .footer-copyright {
        font-size: 0.8em;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .btn,
    .info-box {
        display: none;
    }
}

/* Landing page styles */
.hero {
    text-align: center;
    padding: 20px 0;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 30px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.feature-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

.cta-section {
    text-align: center;
    margin: 20px 0 40px;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.use-cases {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e1e8ed;
}

.use-cases h2 {
    text-align: center;
    margin-bottom: 30px;
}

.use-case-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.use-case-list li {
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.use-case-list li:before {
    content: "→ ";
    color: #667eea;
    font-weight: bold;
    margin-right: 10px;
}
