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

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    transition: background-color 0.3s ease;
}

body.light-theme {
    background-color: color-mix(in srgb, var(--primary, #6366f1) 3%, #f5f5f5);
}

body.dark-theme {
    background-color: color-mix(in srgb, var(--primary, #6366f1) 5%, #1a2332);
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100vh;
}

.form-section {
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.light-theme .form-section {
    background-color: color-mix(in srgb, var(--primary, #6366f1) 6%, #ffffff);
    color: #1a1a1a;
}

.dark-theme .form-section {
    background-color: color-mix(in srgb, var(--primary, #6366f1) 8%, #1f2937);
    color: #ffffff;
}

.back-link {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.light-theme .back-link {
    color: #666;
}

.dark-theme .back-link {
    color: #9ca3af;
}

.back-link:hover {
    color: #6366f1;
}

.back-link md-icon {
    font-size: 18px;
}

.form-content {
    max-width: 420px;
}

.welcome-text h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-text p {
    font-size: 15px;
    margin-bottom: 32px;
    opacity: 0.7;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.social-button {
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
}

.light-theme .social-button {
    background-color: #f3f4f6;
    color: #1a1a1a;
}

.dark-theme .social-button {
    background-color: #374151;
    color: #ffffff;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.social-button img {
    width: 20px;
    height: 20px;
}

.divider-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    transition: background-color 0.3s ease;
}

.light-theme .divider-line {
    background-color: #e5e7eb;
}

.dark-theme .divider-line {
    background-color: #374151;
}

.divider-container span {
    font-size: 14px;
    opacity: 0.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.light-theme .form-group label {
    color: #374151;
}

.dark-theme .form-group label {
    color: #d1d5db;
}

.form-group label span {
    color: #ef4444;
}

md-outlined-text-field {
    width: 100%;
    --md-outlined-text-field-container-shape: 8px;
}

.light-theme md-outlined-text-field {
    --md-outlined-text-field-outline-color: #d1d5db;
    --md-outlined-text-field-hover-outline-color: #9ca3af;
    --md-outlined-text-field-focus-outline-color: #6366f1;
    --md-outlined-text-field-input-text-color: #1a1a1a;
    --md-outlined-text-field-label-text-color: #6b7280;
}

.dark-theme md-outlined-text-field {
    --md-outlined-text-field-outline-color: #4b5563;
    --md-outlined-text-field-hover-outline-color: #6b7280;
    --md-outlined-text-field-focus-outline-color: #6366f1;
    --md-outlined-text-field-input-text-color: #ffffff;
    --md-outlined-text-field-label-text-color: #9ca3af;
}

.checkbox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-container label {
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.forgot-link {
    font-size: 14px;
    text-decoration: none;
    color: #6366f1;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

md-filled-button {
    width: 100%;
    height: 48px;
    --md-filled-button-container-color: #6366f1;
    --md-filled-button-label-text-color: #ffffff;
    --md-filled-button-container-shape: 8px;
}

md-filled-button:hover {
    --md-filled-button-container-color: #5558e3;
}

.signup-text {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

.signup-text a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.signup-text a:hover {
    text-decoration: underline;
}

.brand-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.light-theme .brand-section {
    background: linear-gradient(135deg, #3730a3 0%, #6366f1 100%);
}

.dark-theme .brand-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.brand-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.logo-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.logo-icon md-icon {

    color: white;
}

.brand-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.brand-content p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.decoration1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.decoration2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
}

.decoration3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
}

.theme-toggle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
}

md-filled-icon-button {
    --md-filled-icon-button-container-color: #6366f1;
    --md-filled-icon-button-icon-color: #ffffff;
}

@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
    }

    .brand-section {
        display: none;
    }

    .form-section {
        padding: 40px 30px;
    }

    .form-content {
        max-width: 100%;
    }
}
