* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    width: 100%;
	margin: 0;
}

/* BACKGROUND AND GRADIENT */
.background {
display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 120px 20px; /* Added more padding*/
    background: linear-gradient(180deg, #0b1a4a 0%, #3e1b36 70%, #8b3434 100%);
    background-attachment: fixed;
}

.input-fields.error input {
    border: 1px solid rgb(219, 47, 47);
}

.input-fields .error {
    color: rgb(219, 47, 47);
    font-size: 12px;
    height: 13px;
    margin-top: 5px;
	margin-bottom: 10px;
}

.tab-group {
    display: flex;
    background: #bcbfc5;
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4b5563;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
}

.tab.active {
    background: #b13142;
    color: #ffffff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* SIGN-UP CONTAINER */
.signup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 550px;
    background-color: white;
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.4);
}

.signup-container h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

/* INPUT FORMS */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.input-fields {
    width: 100%;
    margin-bottom: -15px; 
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-fields .error {
    color: #e63946;
    font-size: 11px;
    font-weight: 600;
    height: 15px;
    margin-top: 4px;
    margin-left: 5px;
    display: block;
}

input[type="text"],
input[type="password"] {  
    width: 100%;
    background-color: #f3f4f6;
    color: #333;
    padding: 14px 18px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #0b1a4a;
    background-color: #fff;
}

input[type="email"], 
input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0 20px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 8px; 
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Poppins', sans-serif; 
    transition: all 0.3s ease; 
    outline: none;
	background-color: #f3f4f6;
}

/*  SUBMIT BUTTON */
.btn-submit-link {
    display: block;             
    width: 100%;
    padding: 16px;
    margin: 15px 0 25px 0;
    border-radius: 50px;        
    background-color: #0b1a4a;  
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-decoration: none;    
    transition: transform 0.2s ease, background 0.3s ease;
    cursor: pointer;
}

.btn-submit-link:hover {
    background-color: #1a2b6d;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* DIVIDER AND GOOGLE SIGN-UP */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 10px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #cecece;
}

.divider span {
    color: #888;
    font-size: 14px;
    padding: 0 15px;
}

.google-signup {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: white;
    border: 1.5px solid #cecece;
    padding: 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.google-signup:hover {
    background-color: #f9f9f9;
}

.google-signup img {
    width: 26px;
    height: 15px;
}

.google-signup p {
    font-size: 14px;
    color: #0b1a4a;
    font-weight: 600;
}

/* FOOTER LINK */
.question {
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.question a {
    color: #4cc9f0; 
    font-weight: 700;
    text-decoration: none;
}

.question a:hover {
    text-decoration: underline;
}

/* MOBILE RESPONSIVENESS*/
@media (max-width: 480px) {
    .signup-container {
        max-width: 320px;
        padding: 20px 15px;
		margin-top: 30px;
    }

    .signup-container h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .input-fields {
        margin-bottom: 10px;
    }

    input[type="text"],
    input[type="password"] {  
        padding: 10px 14px;
        font-size: 13px;
    }

    .btn-submit-link {
        padding: 12px;
        margin: 10px 0 10px 0;
        font-size: 14px;
    }

    .google-signup {
        margin-top: 10px;
        padding: 8px;
    }

    .question {
        margin-top: 10px;
        font-size: 12px;
    }
}