/* General body styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* bg-gray-100 */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

/* Main container for the application */
.container {
    background-color: white;
    padding: 2rem; /* p-8 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    max-width: 28rem; /* max-w-md */
    width: 100%;
}

/* Header section */
.header {
    text-align: center;
    margin-bottom: 1.5rem; /* mb-6 */
}

.header h1 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: #1f2937; /* text-gray-800 */
}

.header p {
    color: #6b7280; /* text-gray-500 */
    margin-top: 0.5rem; /* mt-2 */
}

/* Views that are dynamically shown/hidden */
#authenticated-view, #login-view {
    display: none; /* Initially hidden, controlled by JS */
}

/* Form styling */
.message-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

.form-group label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: #374151; /* text-gray-700 */
}

.form-group input,
.form-group textarea {
    margin-top: 0.25rem; /* mt-1 */
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem; /* px-3 py-2 */
    background-color: white;
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af; /* placeholder-gray-400 */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    --tw-ring-color: #3b82f6; /* focus:ring-blue-500 */
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    border-color: #3b82f6; /* focus:border-blue-500 */
}


/* Button styling */
.btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem; /* px-6 py-3 for login, py-2 px-4 for send */
    border: 1px solid transparent;
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: white;
    background-color: #2563eb; /* bg-blue-600 */
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #1d4ed8; /* hover:bg-blue-700 */
}

.btn:focus {
    outline: none;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-width: 2px;
    --tw-ring-color: #2563eb; /* focus:ring-blue-500 */
}


/* Status message styling */
.status-message {
    margin-top: 1rem; /* mt-4 */
    text-align: center;
}

.status-success {
    color: #16a34a; /* text-green-600 */
}

.status-error {
    color: #dc2626; /* text-red-600 */
}

.status-sending {
    color: #4b5563; /* text-gray-600 */
}


/* Link styling */
.link-container {
    margin-top: 1.5rem; /* mt-6 */
    text-align: center;
}

.link {
    font-size: 0.875rem; /* text-sm */
    color: #dc2626; /* text-red-600 */
    text-decoration: none;
}

.link:hover {
    color: #991b1b; /* hover:text-red-800 */
}
