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

:root {
    --primary-yellow: #FDB913;
    --secondary-yellow: #FFD700;
    --dark-yellow: #E5A502;
    --light-yellow: #FFF9E6;
    --hover-yellow: #FFC107;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --border-gray: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: -50px;
}

.logo img {
    max-width: 300px;
    height: auto;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(
       135deg,
    #ffffff 0%,
    #fffaf0 50%,
    #fff4dc 100%
  );
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  background: transparent; /* 👈 important */
}


html::before,
html::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

html::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(253, 185, 19, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

html::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(253, 185, 19, 0.08) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
}

.container {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.form-container, .dashboard {
    background: var(--white);
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-gray);
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Yellow accent bar on top */
.form-container::before, .dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow) 0%, var(--hover-yellow) 100%);
    border-radius: 16px 16px 0 0;
}

.hidden {
    display: none !important;
}

h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Subtitle under heading */
.form-container h2::after {
    content: 'Enter your credentials to continue';
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    margin-top: 8px;
    letter-spacing: 0;
}

#signupContainer h2::after {
    content: 'Create your account to get started';
}

form {
    margin-top: 32px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--off-white);
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(253, 185, 19, 0.1);
    transform: translateY(-1px);
}

.input-group input::placeholder {
    color: #9CA3AF;
}

.input-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-gray);
    font-size: 13px;
}

.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--hover-yellow) 100%);
    color: var(--text-dark);
    margin-bottom: 10px;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 185, 19, 0.3);
    background: linear-gradient(135deg, var(--hover-yellow) 0%, var(--primary-yellow) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-google {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-gray);
    margin-top: 16px;
    font-weight: 500;
}

.btn-google:hover {
    background: var(--off-white);
    border-color: var(--text-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-google svg {
    flex-shrink: 0;
}

.btn-logout {
    background: var(--text-dark);
    color: var(--white);
}

.btn-logout:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.divider {
    text-align: center;
    margin: 28px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border-gray);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: var(--white);
    padding: 0 16px;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-form {
    text-align: center;
    margin-top: 24px;
    color: var(--text-gray);
    font-size: 14px;
}

.toggle-form a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.toggle-form a:hover {
    color: var(--dark-yellow);
    text-decoration: underline;
}

.error-message {
    color: #EF4444;
    font-size: 14px;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
    background: #FEE2E2;
    border: 1px solid #FECACA;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Dashboard Styles */
.dashboard {
    text-align: center;
}

.dashboard h2::after {
    content: 'You are successfully logged in';
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    margin-top: 8px;
    letter-spacing: 0;
}

.user-info {
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--off-white) 100%);
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0 24px 0;
    border: 2px solid rgba(253, 185, 19, 0.2);
    text-align: left;
}

.user-info p {
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info p:last-child {
    margin-bottom: 0;
}

.user-info strong {
    color: var(--text-dark);
    font-weight: 600;
    min-width: 80px;
}

.user-info span {
    color: var(--text-dark);
    font-weight: 500;
    background: var(--white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    flex: 1;
    word-break: break-all;
}

/* Success badge */
.dashboard::after {
    content: '✓';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--hover-yellow) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(253, 185, 19, 0.4);
    border: 4px solid var(--white);
}

/* Responsive Design */
@media (max-width: 480px) {
    .form-container, .dashboard {
        padding: 40px 28px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    body::before,
    body::after {
        display: none;
    }
}

/* Loading animation for buttons */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus styles for accessibility */
.btn:focus-visible {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 2px;
}

.input-group input:focus-visible {
    outline: none;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

button, a {
    transition: all 0.3s ease;
}
