/* Login Page Styles */
body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e9f1ff 100%);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-container {
    background: white;
    padding: 3rem;
    border-radius: 1.2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* New styles for logo and title container */
.logo-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.header-logo {
    width: 70px;
    height: 70px;
    margin: 0;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.login-icon {
    color: #4f46e5;
    margin-bottom: 1rem;
}

.login-header h1 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.login-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-top: 0.5rem;
    line-height: 1.5;
    text-align: center;
}

.login-subtitle strong {
    color: #4f46e5;
}

/* Feature list styling */
.compact-features {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0 1.5rem;
    padding: 0.5rem;
    background-color: #f0f4ff;
    border-radius: 0.5rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0.25rem;
}

.feature-item i {
    color: #4f46e5;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-item span {
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 500;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.login-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(228, 226, 254, 0.1);
}

.login-form button {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #4f46e5 0%, #3f37c9 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    height: 3.25rem;
}

.login-form button:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.button-icon {
    transition: transform 0.2s;
}

.login-form button:hover .button-icon {
    transform: translateX(2px);
}

.login-footer {
    text-align: center;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 2rem;
    line-height: 1.5;
    color: #6b7280;
    font-size: 0.875rem;
}

.login-footer p {
    margin: 0.5rem 0;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.success {
    background: #dcfce7;
    color: #166534;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* New styles for success container */
.success-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.success-container .success {
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.magic-link-sent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.95rem;
    margin: 0;
}

.magic-link-sent i {
    color: #4f46e5;
    font-size: 1.1rem;
}

/* Optional animation for success state */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-container {
    animation: fadeIn 0.5s ease-out forwards;
}

.login-form button[type="submit"].button-disabled {
    background: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: none;
    transform: none;
}

.login-form button[type="submit"].button-disabled:hover {
    background: #e2e8f0;
    transform: none;
    box-shadow: none;
}

/* Add a visual indicator that verification is needed */
.turnstile-container {
    margin-bottom: 0.5rem;
}

/* SVG Icon Styles */
.feature-icon {
    color: #4f46e5;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    fill: currentColor;
    width: 1rem;
    height: 1rem;
}

.email-icon {
    color: #4f46e5;
    font-size: 1.1rem;
    fill: currentColor;
    width: 1.1rem;
    height: 1.1rem;
    vertical-align: middle;
}

.button-icon {
    fill: currentColor;
    transition: transform 0.2s;
    vertical-align: middle;
}

/* Feature item adjustments for SVG */
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0.25rem;
}

/* Magic link sent adjustment for SVG */
.magic-link-sent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer icon alignment */
.login-footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Simpler checkbox styling that's more reliable */
.remember-email {
    display: flex;
    align-items: center;
    margin: 0.5rem 0 1.5rem;
}

.remember-email input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-right: 0.5rem;
    accent-color: #4f46e5; /* Modern browsers support this */
    transform: scale(1.2); /* Slightly larger checkbox */
}

.remember-email label {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}