* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1f2937;
}

.layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.logo {
    width: 320px;
    height: auto;
    margin-bottom: 0.5rem;
}

.form-container {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 3rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 580px;
    min-width: 480px;
    text-align: center;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: #111827;
    text-align: center;
    margin: 0 0 2rem 0;
    line-height: 2.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.label {
    display: block;
    width: 100%;
}

.label-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.label-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.input-wrapper {
    position: relative;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.15s ease-in-out;
    outline: none;
    color: #111827;
    min-height: 48px;
}

.form-input:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.input-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #6b7280;
    cursor: pointer;
    pointer-events: none;
}

.password-toggle {
    pointer-events: auto;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1552B9;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    margin-top: 1rem;
}

.submit-button:hover {
    background: #0f3a8a;
}

.submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.login-link a {
    color: #1552B9;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.eye-icon {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.success-message {
    color: #059669;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Verification page specific styles */
.verification-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.5rem;
    color: #1552B9;
}

.form-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.email-display {
    color: #1552B9;
    font-weight: 600;
}

.code-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: #f9fafb;
    transition: all 0.15s ease-in-out;
    outline: none;
    color: #111827;
    text-align: center;
    letter-spacing: 0.25rem;
    min-height: 48px;
}

.code-input:focus {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.code-input.error {
    border-color: #ef4444;
    background: #fef2f2;
}



.back-link {
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.back-link a {
    color: #1552B9;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.back-link a:hover {
    text-decoration: underline;
}