
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman'
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    perspective: 1000px;
    padding: 20px;
}

.resend-link {
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.disabled {
    color: grey;
    cursor: not-allowed;
}

#resendOtpContainer {
    font-size: 14px;
    display: inline-block;
    margin-top: 15px;
    width: 100%;
}

form {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: rotateX(15deg);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

form:hover {
    transform: rotateX(0deg) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    color: #4a4a4a;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
    letter-spacing: 1px;
}

h1::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 2px;
}

label {
    display: block;
    margin: 15px 0 8px;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

input:hover {
    border-color: #764ba2;
}

#emailError {
    font-size: 13px;
    margin: 5px 0;
    height: 20px;
    transition: all 0.3s ease;
}

input:read-only {
    background-color: #f4f4f4;
    cursor: not-allowed;
    border-color: #cccccc;
    color: #666;
}

input:read-only:focus {
    box-shadow: none;
    border-color: #cccccc;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(2px); }
    30%, 70% { transform: translateX(-2px); }
    40%, 60% { transform: translateX(2px); }
    50% { transform: translateX(0); }
}

button {
    width: 100%;
    padding: 15px;
    margin: 20px 0 10px;
    background: linear-gradient(to right, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 600;
    letter-spacing: 1px;
    transform: perspective(500px);
}

button:hover {
    background: linear-gradient(to left, #667eea, #764ba2);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

button:disabled {
    background: #b0b0b0;
    cursor: not-allowed;
    transform: scale(1);
    box-shadow: none;
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.available { 
    color: green;     
    animation: fadeIn 0.5s;
    font-weight: 500;
}

.taken { 
    color: red;    
    animation: shake 0.5s;
    font-weight: 500;
}

@media (max-width: 600px) {
    form {
        width: 95%;
        padding: 20px;
        margin: 10px;
        transform: none;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    form {
        padding: 30px 20px;
        width: 95%;
        max-width: 500px;
    }

    label, input, button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    form {
        padding: 20px 15px;
    }

    label, input, button {
        font-size: 13px;
    }
}

@media (min-width: 1200px) {
    body {
        padding: 50px;
    }

    form {
        max-width: 700px;
        padding: 50px;
    }

    h1 {
        font-size: 3rem;
    }

    label, input, button {
        font-size: 16px;
    }
}

/* Align the eye icon within the password input fields */
.input-group {
    position: relative;
}

.input-group .input-group-append {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.input-group .input-group-text {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}
