/* style.css */

/* Import Google Fonts - Inter for a clean, professional look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    background-color: #f2f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* Main container for signup page */
.signup-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1),
                0 8px 15px -3px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    max-width: 1000px; /* Wider form box for a rectangular feel */
    width: 95%;
    margin: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Desktop layout: side-by-side */
@media (min-width: 768px) {
    .signup-page-container {
        flex-direction: row;
        padding: 3rem 4rem;
        justify-content: space-between;
        align-items: center;
    }
}

/* Close button */
.close-button {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2.5rem;
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s ease-in-out;
}
.close-button:hover {
    color: #4b5563;
}

/* Form container background */
.form-container-bg {
    background-color: #eaf8f0;
    border: 1px solid #c8e6d9;
    border-radius: 0.75rem;
    padding: 2rem;
    width: 100%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Heading */
.form-container-bg h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1.8rem;
    letter-spacing: -0.025em;
}

/* Labels */
.form-container-bg label {
    display: block;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* Inputs and selects */
.custom-input-field,
.custom-select-field {
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    color: #374151;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}
.custom-input-field:focus,
.custom-select-field:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* Dropdown arrow */
.custom-select-field {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" class="w-4 h-4"><path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Placeholder */
.custom-input-field::placeholder {
    color: #9ca3af;
}

/* Error message */
.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    min-height: 1.2rem;
    font-weight: 500;
}

/* Password alert */
.password-alert {
    background-color: #fef2f2;
    border: 1px solid #ef4444;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    display: none;
}
.password-alert ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}
.password-alert li {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.password-alert li.valid {
    color: #10b981;
}
.password-alert li.invalid {
    color: #ef4444;
}

/* Password input + eye icon */
.password-input-container {
    position: relative;
    width: 100%;
}
.password-input {
    padding-right: 3rem;
}
.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.toggle-password:hover {
    color: #374151;
}

/* Sign Up button */
.signup-button {
    background-color: #10b981;
    color: white;
    font-weight: 700;
    padding: 0.9rem 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 8px 15px -3px rgba(16, 185, 129, 0.3),
                0 4px 6px -2px rgba(16, 185, 129, 0.15);
    transition: all 0.3s ease;
    display: block;
    width: fit-content;
    margin: 2rem auto 0 auto;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}
.signup-button:hover {
    background-color: #059669;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -4px rgba(16, 185, 129, 0.4),
                0 6px 8px -3px rgba(16, 185, 129, 0.2);
}
.signup-button:active {
    background-color: #047857;
    transform: translateY(0);
}

/* Checkbox */
input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
    accent-color: #10b981;
}

/* Custom message box */
.custom-message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    max-width: 300px;
    width: 90%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.logo-wrapper {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid #10b981; /* green border */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* keep logo inside */
    background-color: white; /* para pantay background */
}

.swap-tayo-logo {
    width: 90%;
    height: auto;
    object-fit: contain; /* buo ang text */
}


/* Image (left) side */
.signup-image-side {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 2rem 2.5rem;
}

/* Form (right) side */
.signup-form-side {
    flex: 1.2; /* Slightly less so logo side is more visible */
    max-width: 480px;
    width: 100%;
}
@media (min-width: 768px) {
    .signup-form-side {
        padding-left: 2.5rem;
    }
}


