* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 48px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.header-nav a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: #5ca110;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    font-size: 0.875rem;
    font-weight: 600;
    color: #5ca110;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-signup {
    background-color: #5ca110;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-signup:hover {
    background-color: #4a8d0c;
}

/* Layout Container */
.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Logo Side (Left) */
.logo-side {
    width: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 3rem 2rem;
    padding-right: 3rem;
}

.logo-image {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.logo-side,
.form-side {
    transition: opacity 0.28s ease;
}

.logo-side.logo-fade-out,
.form-side.form-fade-out {
    opacity: 0;
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.72);
    z-index: 1300;
}

.page-transition-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #0D9B00;
    border-right-color: transparent;
    border-radius: 9999px;
    animation: page-transition-spin 0.75s linear infinite;
}

.page-transition-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0D9B00;
}

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


/* Form Side (Right) */
.form-side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 2rem;
    padding-left: 3rem;
}

.form-wrapper {
    width: 100%;
    max-width: 28rem;
}

.form-header {
    margin-bottom: 2rem;
}

.form-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0D9B00;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.form-subtitle {
    font-size: 1.5rem;
    color: #ca8a04;
    margin: 0;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    height: 3rem;
    padding: 0 1rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: #0D9B00;
    box-shadow: 0 0 0 3px rgba(13, 155, 0, 0.1);
}

.forgot-password-link {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
}

.submit-button {
    width: 100%;
    height: 3rem;
    background: #0D9B00;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 1rem;
}

.submit-button:hover {
    opacity: 0.9;
}

.submit-button:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

.button-loading-spinner {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.45rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 9999px;
    animation: button-loading-spin 0.75s linear infinite;
    vertical-align: -2px;
}

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

.signup-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.signup-link {
    color: #0D9B00;
    font-weight: 600;
    text-decoration: none;
}

.signup-link:hover {
    color: #0D9B00;
    text-decoration: underline;
}

.login-link-container {
    text-align: center;
    margin-top: 1.5rem;
}

.login-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.login-link {
    color: #0D9B00;
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    color: #0D9B00;
    text-decoration: underline;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .container { flex-direction: column; }
    .form-side, .logo-side { width: 100%; padding: 2rem; justify-content: center; }
    .logo-side { display: none; }
}