body {
    background-color: #1e1f20;
    color: #e8eaed;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: 14px;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1040px; /* Standard wide container */
    padding: 24px;
    box-sizing: border-box;
}

.card {
    background-color: #000000; /* Slightly lighter than pure black for material surface */
    border-radius: 28px;
    padding: 48px; /* High padding */
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 880px; 
    height: 420px; /* Approximate height */
    box-sizing: border-box;
    /* In dark mode, Google often doesn't have a shadow, but maybe a subtle border or just contrast */
    border: 1px solid transparent; 
    position: relative; /* Establish positioning context for absolute children like loading-line */
    overflow: hidden; /* Ensure loading line doesn't overflow corners if radius mismatches slightly */
}

.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-right: 24px;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* padding-left: 24px; */
    /* Ensure content is aligned properly */
}

/* Logo */
.logo {
    margin-bottom: 16px;
}

h1 {
    font-size: 36px; /* Large Sign in text */
    font-weight: 400;
    margin: 0 0 12px 0;
    color: #e8eaed;
}

.subtitle {
    font-size: 16px;
    margin: 0;
    color: #e8eaed;
}

/* View Transition Styles */
.view-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

/* User Chip */
.user-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #5f6368;
    border-radius: 16px;
    padding: 4px 12px 4px 4px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #e8eaed;
}

.user-chip:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.user-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: #e8eaed;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    fill: #e8eaed;
}

/* Password View Specifics */
.instruction-text {
    font-size: 16px;
    color: #e8eaed;
    margin: 0 0 40px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 32px;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #9aa0a6;
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin-right: 16px;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #8ab4f8;
    border-color: #8ab4f8;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #202124;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container label {
    font-size: 14px;
    color: #e8eaed;
    cursor: pointer;
}

/* Loading Line */
.loading-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(168, 199, 250, 0.1); /* Faint track */
    border-top-left-radius: 28px; /* Match card radius */
    border-top-right-radius: 28px;
    display: none; /* Hidden by default */
    overflow: hidden;
    z-index: 10;
}

.loading-line::before {
    content: '';
    position: absolute;
    background-color: #a8c7fa;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.loading-line::after {
    content: '';
    position: absolute;
    background-color: #a8c7fa;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    animation-delay: 1.15s;
}

@keyframes indeterminate {
    0% {
        left: -35%;
        right: 100%;
    }
    60% {
        left: 100%;
        right: -90%;
    }
    100% {
        left: 100%;
        right: -90%;
    }
}

@keyframes indeterminate-short {
    0% {
        left: -200%;
        right: 100%;
    }
    60% {
        left: 107%;
        right: -8%;
    }
    100% {
        left: 107%;
        right: -8%;
    }
}

/* Responsive adjustments for views */
@media (max-width: 768px) {
    .view-container {
        flex-direction: column;
    }
    
    .loading-line {
        border-radius: 0; /* No radius on mobile full screen */
        position: fixed; /* Stick to top on mobile */
        top: 0;
        left: 0;
    }
}

/* Error View Specifics */
.error-view-layout {
    /* Reuse standard view layout but specific adjustments if needed */
}

.error-heading {
    font-size: 36px; /* Match standard h1 */
    font-weight: 400;
    margin: 0 0 12px 0;
    color: #e8eaed;
}

.error-description {
    font-size: 16px;
    color: #e8eaed;
    margin: 0;
    line-height: 1.5;
}

.error-right-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align button to bottom */
}

.action-buttons.error-actions {
    justify-content: flex-end; /* Align button to right */
    width: 100%;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between; /* To push buttons to bottom */
}

/* Floating Label Input */
.input-container {
    position: relative;
    margin-top: 20px; /* Align with top or spacing */
    margin-bottom: 8px;
}

.input-container input {
    width: 100%;
    background: transparent;
    border: 1px solid #5f6368;
    border-radius: 4px;
    padding: 13px 15px;
    color: #e8eaed;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    height: 56px;
    transition: border-color 0.2s;
}

.input-container input:focus {
    border-color: #8ab4f8;
    border-width: 2px;
    padding: 12px 14px; /* Adjust for border width change to prevent layout shift */
}

.input-container label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    background-color: #1c1b1f; /* Match card bg to hide line */
    padding: 0 4px;
    color: #9aa0a6;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    pointer-events: none;
}

/* Active state for label (focus or has value) */
.input-container input:focus ~ label,
.input-container input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 12px;
    color: #8ab4f8;
}

/* If not focused but has value, keep label up but gray */
.input-container input:not(:focus):not(:placeholder-shown) ~ label {
    color: #9aa0a6;
}

/* Error State Styles */
.input-container.error input {
    border-color: #f28b82; /* Light red for dark mode error */
}

.input-container.error input:focus {
    border-color: #f28b82;
}

.input-container.error label {
    color: #f28b82;
}

.error-message {
    display: none; /* Hidden by default */
    align-items: center;
    color: #f28b82;
    font-size: 12px;
    margin-top: 6px;
    margin-bottom: 24px;
    padding-left: 2px;
}

.error-message svg {
    margin-right: 8px;
    fill: #f28b82;
    min-width: 16px; /* Prevent shrinking */
}

.forgot-email {
    color: #8ab4f8;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 32px;
    display: inline-block;
    font-size: 14px;
    border-radius: 4px;
    padding: 2px 0;
}

.guest-info {
    color: #9aa0a6;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 32px;
}

.guest-info a {
    color: #8ab4f8;
    text-decoration: none;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Push to bottom if container has height */
}

.create-account {
    background: transparent;
    color: #8ab4f8;
    border: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 0; /* Adjusted padding */
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

.next-btn {
    background-color: #a8c7fa; /* Lighter blue for dark mode button */
    color: #062e6f; /* Dark text */
    border: none;
    border-radius: 20px; /* Pill shape */
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.2s;
    position: relative;
    overflow: hidden;
}

.next-btn:hover {
    background-color: #d7e3ff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
}

/* Ripple effect */
button span {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
.logo-icon{
    width: 24px;
    height: 24px;
}
/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1040px;
    margin-top: 24px;
    font-size: 12px;
}

.language-select {
    position: relative;
    display: flex;
    align-items: center;
    /* background-color: rgba(255,255,255,0.05); Slight highlight */
    border-radius: 4px;
    padding-left: 64px;
}

.language-select select {
    appearance: none;
    background: #1e1f20;
    border: none;
    color: #e8eaed;
    font-size: 12px;
    padding: 8px 24px 8px 4px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.select-arrow {
    position: absolute;
    right: 8px;
    pointer-events: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #e8eaed;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-links a {
    color: #e8eaed;
    text-decoration: none;
    padding: 6px;
    /* padding-right: 48px; */
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        background-color: #000000;
        align-items: flex-start; /* Align to top */
    }

    .main-wrapper {
        padding: 16px;
        max-width: 100%;
        min-height: 100vh;
        justify-content: space-between; /* Push footer to bottom */
    }

    .card {
        background-color: transparent;
        flex-direction: column;
        height: auto;
        padding: 0;
        border: none;
        border-radius: 0;
        margin-top: 24px; /* Top spacing */
    }
    
    .left-section {
        margin-bottom: 24px;
        padding-right: 0;
    }
    
    h1 {
        font-size: 32px; /* Bigger on mobile too per screenshot */
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .right-section {
        width: 100%;
    }

    .input-container {
        margin-top: 0;
    }

    .input-container input {
        background-color: #000000; /* Match background */
    }

    .input-container label {
        background-color: #000000;
    }
    
    .action-buttons {
        margin-top: 32px;
    }
    
    .footer {
        flex-direction: column;
        align-items: flex-start; /* Left align */
        gap: 24px;
        padding-bottom: 24px;
        margin-top: auto;
    }

    .footer-links {
        padding-left: 0;
        gap: 24px;
    }
}
