body {
    margin: 0;
}

.chalk-auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 20px;
    background:
        radial-gradient(circle at top, rgba(46, 139, 87, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(250, 204, 21, 0.08), transparent 28%),
        linear-gradient(180deg, #173a28 0%, #102618 100%);
    overflow-x: hidden;
    overflow-y: auto;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ffffff;
}

.chalk-auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.05), transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.04), transparent 18%);
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.12; }
    50% { transform: translateY(-18px) rotate(4deg); opacity: 0.22; }
    100% { transform: translateY(0) rotate(0deg); opacity: 0.12; }
}

.chalk-formulas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.chalk-formulas span {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
    user-select: none;
    animation: float 10s ease-in-out infinite;
}

.chalk-formulas span:nth-child(even) { animation-duration: 13s; animation-delay: -2s; }
.chalk-formulas span:nth-child(3n) { animation-duration: 8s; }

.chalk-brand {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    margin-bottom: 8px;
}

.chalk-brand-badge {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.chalk-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.chalk-brand-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chalk-brand-subtitle {
    margin: 0;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

.chalk-card {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 2.5rem 2.25rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.chalk-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chalk-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.chalk-card-desc {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.chalk-card form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.25rem;
}

.chalk-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.chalk-input-icon {
    position: absolute;
    left: 1.25rem;
    width: 1.125rem;
    height: 1.125rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.form-input {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.75rem 1rem 0.75rem 3.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.text-danger {
    display: block;
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 500;
}

.chalk-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

.chalk-checkbox-row input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: #ffffff;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
}

.chalk-checkbox-row label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    user-select: none;
}

.chalk-btn {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chalk-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.3s ease;
}

.chalk-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}

.chalk-btn:hover svg {
    transform: translateX(4px);
}

.chalk-btn:active {
    transform: translateY(0);
}

.chalk-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
}

.chalk-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.2s ease;
}

.chalk-link-strong, .chalk-link-bold, .chalk-back-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.chalk-link:hover { color: rgba(255, 255, 255, 0.8); }
.chalk-link-strong:hover, .chalk-link-bold:hover, .chalk-back-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.chalk-alert {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    backdrop-filter: blur(10px);
}

.chalk-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.chalk-alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

.chalk-user-preview {
    margin-bottom: 1.5rem;
}

.chalk-user-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    backdrop-filter: blur(10px);
}

.chalk-user-avatar {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.chalk-user-info {
    flex: 1;
    overflow: hidden;
}

.chalk-user-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chalk-change-account {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

.chalk-change-account:hover {
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .chalk-auth-page { justify-content: flex-start; padding-top: 40px; }
    .chalk-card { padding: 2rem 1.5rem; border-radius: 1.5rem; }
    .chalk-card-title { font-size: 1.5rem; }
}
