:root {
    --primary-color: #ff6600;
    --background-color: #121825;
    --card-color: #1d283b;
    --text-color: #ffffff;
    --input-bg: #131323;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: clamp(1rem, 5vw, 2rem);
    overflow-x: hidden;
}

.header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 8vw, 140px);
    display: flex;
    align-items: center;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: clamp(40px, 10vw, 100px);
    height: auto;
}

.logo h1 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
}

.logo p {
    font-size: clamp(0.7rem, 1.5vw, 0.875rem);
    font-weight: 300;
    color: gray;
}

.back-button {
    position: fixed;
    left: clamp(1rem, 5vw, 2.5rem);
    top: clamp(1rem, 5vw, 2.5rem);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 110;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #ff8533;
}

.signup-card {
    background-color: var(--card-color);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 480px;
    text-align: center;
    position: relative;
}

.signup-card h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.input-wrapper {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input {
    padding-right: 45px;
}

.input-group input:focus {
    outline: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.pw-toggle {
    position: absolute;
    right: 12px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1rem;
    color: #999999;
    z-index: 10;
    transition: color 0.2s ease;
}

.pw-toggle:hover {
    color: var(--primary-color);
}

.forgot-password-link {
    width: 100%;
    text-align: right;
    margin-top: 4px;
}

.forgot-password-link a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
}

.btn-signup {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-signup:hover {
    background-color: #ff8533;
}

.btn-signup:active {
    transform: scale(0.98);
}

.login-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Small Phones (iPhone SE, small Androids) */
@media (max-width: 360px) {
.header {
    padding-top: 0.5rem;
    left: clamp(1rem, 5vw, 2rem);
    top: clamp(0.1rem, 0.5vw, .5rem);
    }
    .header h1 {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
    .back-button {
        font-size: clamp(1.5rem, 3vw, 1rem);
        left: clamp(1rem, 5vw, 2rem);
    }
    .signup-form {
        gap: 0.5rem;
    }
    .signup-card {
        width: 100%;
        height: 30%;
    }
    .signup-card h2 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    .signup-card label {
        font-size: clamp(0.75rem, 2vw, 0.85rem);
    }
    .signup-card input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

}

/* Medium Phones (iPhone 12/13/14, Pixel) */
@media (min-width: 361px) and (max-width: 480px) {
    .header {
    padding-top: 0.5rem;
    left: clamp(1rem, 5vw, 2rem);
    top: clamp(0.1rem, 0.5vw, .5rem);
    }
    .header h1 {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
    .back-button {
        font-size: clamp(1.5rem, 3vw, 1rem);
        left: clamp(1rem, 5vw, 2rem);
        top: clamp(1rem, 0.5vw, .5rem);
    }
    .signup-form {
        gap: 0.5rem;
    }
    .signup-card {
        width: 100%;
        height: 40%;
    }
    .signup-card h2 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    .signup-card label {
        font-size: clamp(0.75rem, 2vw, 0.85rem);
    }
    .signup-card input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .signup-card .login-link {
        font-size: 0.85rem;
    }

}

/* Regular / Large Phones (Pro Max, Plus Models) */
@media (min-width: 481px) and (max-width: 600px) {
.header {
    left: clamp(2rem, 5vw, 2rem);
    }
    
    .signup-card {
        max-width: 360px;
        margin-top: 60px;
    }
}

/* Phablets / Small Tablets (iPad Mini, Foldables) */
@media (min-width: 601px) and (max-width: 768px) {
    .header {
        left: clamp(2rem, 5vw, 2rem);
    }

    .signup-card {
        top: 30%;
        transform: translateY(-30%);
        margin-top: 180px;
    }
}

/* Tablets (iPad Air, Galaxy Tab) */
@media (min-width: 769px) and (max-width: 1020px) {
    .header {
        left: clamp(2rem, 5vw, 2rem);
    }

    .signup-card {
        top: 30%;
        transform: translateY(-30%);
        margin-top: 0px;
    }
}

@media (width: 1024px) {

    .header {
        
        left: clamp(0.5rem, 0.5vw, 0.5rem);
    }
    .back-button {
        max-height: clamp(60px, 10vw, 80px);
        font-size: clamp(3rem, 3vw, 1.8rem);
        left: clamp(2rem, 5vw, 2rem);
        top: 3.5%;
        transform: translateY(-3.5%);
    }
    .signup-card {
        top: 50%;
        transform: translateY(-50%);
        max-width: 450px;
        max-height: 480px;
    }
}

@media (width: 1024px) and (orientation: landscape) {

    .header {
        max-height: clamp(60px, 10vw, 80px);
        left: clamp(0.5rem, 0.5vw, 0.5rem);
    }
    .back-button {
        max-height: clamp(60px, 10vw, 80px);
        font-size: clamp(1.5rem, 3vw, 1.8rem);
        left: clamp(2rem, 5vw, 2rem);
        top: 3.5%;
        transform: translateY(-3.5%);
    }
    .signup-card {
        max-width: 450px;
        max-height: 480px;
    }
}

/* Laptops / Small Desktops */
@media (min-width: 1025px) and (max-width: 1440px) {
    .header {
        max-height: clamp(60px, 10vw, 80px);
        left: clamp(0.5rem, 0.5vw, 0.5rem);
    }
    .back-button {
        max-height: clamp(60px, 10vw, 80px);
        font-size: clamp(1.5rem, 3vw, 1.8rem);
        left: clamp(2rem, 5vw, 2rem);
        top: 3.5%;
        transform: translateY(-3.5%);
    }
    .signup-card {
        max-width: 520px;
    }
}
/* Large Desktops / Ultra-wide */
@media (min-width: 1441px) {

    .header {
        max-height: clamp(70px, 8vw, 100px);
        left: 1rem;
    }

    .back-button {
        max-height: clamp(70px, 8vw, 100px);
        font-size: clamp(1.8rem, 2.5vw, 2.2rem);
        left: 3rem;
        top: 3.5%;
        transform: translateY(-3.5%);
    }

    .signup-card {
        max-width: 600px;
    }

}

@media (width: 712px) and (height: 1138px){

    .signup-card{
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (width: 800px) and (height: 1280px){

    .signup-card{
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (width: 412px) and (height: 823px){

    .signup-card{
        top: 30%;
        transform: translateY(-30%);
    }
}

@media (width: 600px) and (height: 960px){

    .signup-card{
        top: 30%;
        transform: translateY(-30%);
    }
}

@media (width: 480px) and (height:854px){           

    .signup-card{
        top: 30%;
        transform: translateY(-30%);
    }
}


@media (width: 393px) and (height:786px){

    .signup-card{
        top: 10%;
        transform: translateY(-10%);
    }
}

@media (width: 414px) and (height:896px){

    .signup-card{
        top: 20%;
        transform: translateY(-20%);
    }
}

@media (width: 600px) and (height:1024px){

    .signup-card{
        top: 40%;
        transform: translateY(-40%);
    }
}

@media (width: 390px) and (height:844px){

    .signup-card{
        top: 20%;
        transform: translateY(-20%);
    }
}

@media (width: 430px) and (height:932px){

    .signup-card{
        top: 30%;
        transform: translateY(-30%);
    }
}


@media (width: 412px) and (height:915px){

    .signup-card{
        top: 30%;
        transform: translateY(-30%);
    }
}


@media (width: 768px) and (height:1024px){

    .signup-card{
        top: 35%;
        transform: translateY(-35%);
    }
}

@media (width: 912px) and (height:1368px){

    .signup-card{
        top: 55%;
        transform: translateY(-55%);
    }
}

@media (width: 344px) and (height:882px){

    .signup-card{
        top: 35%;
        transform: translateY(-35%);
    }
}


@media (width: 853px) and (height:1280px){

    .signup-card{
        top: 50%;
        transform: translateY(-50%);
    }   
}


@media (width: 412px) and (height:914px){

    .signup-card{
        top: 30%;
        transform: translateY(-30%);
    }   
}


@media (width: 1024px) and (height:600px){

    .signup-card{
        top: 0%;
        transform: translateY(-0%);
    
    }   
}

@media (width: 1024px) and (height:768px){

    .signup-card{
        top: 0%;
        transform: translateY(-0%);
    
    }   
}

@media (width: 1024px) and (height:1366px){

    .signup-card{
        top: 65%;
        transform: translateY(-65%);
    }   
}


@media (width: 1366px) and (height:1024px){

    .header {
        max-height: clamp(60px, 10vw, 80px);
        left: clamp(0.5rem, 0.5vw, 0.5rem);
    }
    .back-button {
        max-height: clamp(60px, 10vw, 80px);
        font-size: clamp(1.5rem, 3vw, 1.8rem);
        left: clamp(2rem, 5vw, 2rem);
        top: 3.5%;
        transform: translateY(-3.5%);
    }
    .signup-card {
        max-width: 520px;
        top: 30%;
        left: 50%;
        transform: translate(-100%, -30%);
    }
}


@media (width: 912px) and (height:1368px){
    .signup-card {
        max-width: 520px;
        transform: translate(-0%, -50%);
    }
}

@media (width: 1280px) and (height:800px){
    .signup-card {
        max-width: 520px;
        transform: translate(-35%, -0%);
    }
}