/* Registration Page Styles */

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

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #E4F2FF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.registration-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    min-height: 600px;
    gap: 4rem;
    align-items: center;
}

/* Left Side - Welcome Image */
.welcome-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.welcome-image {
    max-width: 100%;
    height: auto;
    width: 500px;
}

/* Right Side - Form Card */
.form-side {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: 90vh;
}

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

.form-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: black;
}

.form-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Error messages */
.error-list {
    background: #FFEBEE;
    border: 1px solid #EF5350;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-list li {
    color: #C62828;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.error-list li:last-child {
    margin-bottom: 0;
}

.error-list li::before {
    content: '⚠ ';
    margin-right: 0.5rem;
}

/* Form Styles */
form {
    display: grid;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    color: #333;
}

label .required {
    color: #EF5350;
}

input, select {
    padding: 0.75rem 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Figtree', sans-serif;
    color: #333;
    background: #FAFAFA;
    transition: all 0.3s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: #42A5F5;
    background: white;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

input::placeholder {
    color: #999;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    background-color: #FAFAFA;
}

.password-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-register {
    width: 100%;
    padding: 0.875rem 2rem;
    background: #42A5F5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Figtree', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.3);
}

.btn-register:hover {
    background: #1E88E5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 165, 245, 0.4);
}

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

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-login-link {
    width: 100%;
    padding: 0.875rem 2rem;
    background: white;
    color: #42A5F5;
    border: 2px solid #42A5F5;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-login-link:hover {
    background: #42A5F5;
    color: white;
    transform: translateY(-2px);
}

/* Error styling */
.error {
    border-color: #EF5350 !important;
    background: #FFEBEE !important;
}

.error-message {
    color: #C62828;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .registration-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 1.5rem;
    }

    .welcome-side {
        padding: 1rem;
    }

    .welcome-image {
        width: 300px;
    }

    .form-side {
        padding: 2rem 1.5rem;
        max-height: none;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Loading state animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-register.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.6s linear infinite;
}

.help-text {
  font-size: 0.85rem;
  color: #999;
}

#account-prompt-text {
  align-self: center;
}
