/* Login Page Styles */

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial', sans-serif;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.logo-section {
    margin-bottom: 30px;
}

.logo-section img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.logo-section h1 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    font-weight: bold;
}

.logo-section p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #dc2626;
}

.magic-link-btn {
    width: 100%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.magic-link-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.magic-link-btn:active {
    transform: translateY(0);
}

.magic-link-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.info-text {
    margin-top: 20px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

.back-link {
    margin-top: 25px;
}

.back-link a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* Alert Boxes */
.alert-box {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    display: none;
}

.alert-box.show {
    display: block;
}

.alert-box.success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert-box.error {
    background: #fee2e2;
    border: 1px solid #dc2626;
    color: #7f1d1d;
}

.alert-box.info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e3a8a;
}

.alert-box strong {
    font-weight: 600;
}

.alert-box .signup-link {
    display: inline-block;
    margin-top: 8px;
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
}

.alert-box .signup-link:hover {
    text-decoration: underline;
}

/* Token verification section */
.token-verification {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.token-verification.show {
    display: block;
}

.verification-spinner {
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }
}