/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Reddit Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #dfc6f5 0%, #f3d4ca 50%, #b3c5f4 100%);
    background-size: cover;
    background-attachment: fixed;
}

/* Navbar styles */
.navbar {
    background-color: #5849cd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-icon {
    width: 35px;          
    height: 35px;         
    object-fit: contain;  
}

.logo-container {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;          
}

.logo-text {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-btn {
    background-color: #ffffff;
    color: #5849cd;
    border: none;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background-color: #f0edff;
    transform: scale(1.04);
}

/* Card container layout */
.main-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.signup-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 480px; /* Mas compact at elegant tingnan */
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(40, 36, 100, 0.1), 
                0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

h1 {
    color: #2c2069;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.subtitle {
    color: #75759e;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Form controls layout */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.dual-columns > * {
    flex: 1;
}

.triple-columns > * {
    flex: 1;
}

.form-section {
    text-align: left;
}

.section-label {
    display: block;
    font-size: 13px;
    color: #5848CB;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Input Fields & Dropdowns Styling */
input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2dbff;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    outline: none;
    background-color: #fff;
    transition: all 0.2s ease;
}

input::placeholder {
    color: #a4a4a4;
}

input:focus, select:focus {
    border-color: #5849cd;
    box-shadow: 0 0 0 3px rgba(88, 73, 205, 0.1);
}

/* Select element styling wrapper for custom drop down arrows */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▾';
    font-size: 12px;
    color: #5849cd;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
}

/* Gender Row / Radio Buttons custom styling */
.gender-container {
    gap: 10px;
}

.gender-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid #e2dbff;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2c2069;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.2s ease;
}

.gender-box:hover {
    border-color: #5849cd;
    background-color: #fcfbfe;
}

.gender-box input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio {
    height: 16px;
    width: 16px;
    border: 1.5px solid #b3a9ed;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.2s;
}

/* Radio active states */
.gender-box input:checked ~ .custom-radio {
    border-color: #5849cd;
    background-color: #5849cd;
}

.gender-box input:checked ~ .custom-radio::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: white;
}

.gender-box has(input:checked) {
    border-color: #5849cd;
    background-color: #f5h;
}

/* Centered credentials block alignment */
.credentials-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%; /* Ginawang full width para mas malapad at modern */
    margin-top: 10px;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 1;
}

/* Bottom elements layout */
.terms-text {
    font-size: 12px;
    color: #75759e;
    line-height: 1.5;
    margin: 5px 0;
}

.terms-text a {
    color: #5849cd;
    text-decoration: none;
    font-weight: 600;
}

.terms-text a:hover {
    text-decoration: underline;
}

.submit-btn {
    background-color: #ff64b4;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: 100%; /* Swabe na ang width nito para sa block type modern forms */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 100, 180, 0.3);
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background-color: #f24da1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 100, 180, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Utility for accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}