:root {
    --notes-orange: #f7b562;
    --notes-orange-dark: #e09e45;
    --notes-green-light: #d4edda;
    --notes-bg-light: #f8f8f8;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --red-error: #f44336;
    --green-success: #4caf50;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--notes-bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
}

/* Message Box */
.message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--green-success);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.message-box.show {
    opacity: 1;
}

/* Home Button */
.home-button-container {
    width: 100%;
    max-width: 28rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    text-align: left;
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--notes-orange);
    color: var(--white);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.home-button:hover {
    background-color: var(--notes-orange-dark);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Card Container */
.card-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 28rem;
    border: 2px solid var(--notes-orange);
}

/* Headings & Description */
.card-container h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.25rem;
}

.card-container p {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 1.75rem;
}

/* Form */
.form-space-y-6 > div {
    margin-bottom: 1.25rem;
}

/* Label */
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.3rem;
}

/* Input Fields */
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    background-color: #fff;
    font-size: 0.875rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    border-color: var(--notes-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(247, 181, 98, 0.3);
}

/* Checkbox + Forgot */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--gray-300);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--gray-900);
}

/* Forgot Password */
.forgot-password-link a {
    font-size: 0.875rem;
    color: var(--notes-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link a:hover {
    color: var(--notes-orange-dark);
}

/* Submit Button */
.btn-primary {
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    background-color: var(--notes-orange);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--notes-orange-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(247, 181, 98, 0.4);
}

/* Sign-up Section */
.signup-link-section {
    margin-top: 2rem;
    text-align: center;
}

.signup-link-section p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.signup-link-section a {
    font-weight: 500;
    color: var(--notes-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

.signup-link-section a:hover {
    color: var(--notes-orange-dark);
}

/* Responsive */
@media (max-width: 640px) {
    .card-container {
        padding: 1.5rem;
    }

    .card-container h2 {
        font-size: 1.5rem;
    }

    .home-button-container {
        padding: 0 0.5rem;
    }
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    animation: spin 0.6s linear infinite;
}

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

.hidden {
    display: none;
}
