@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #0b0f19;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}


.background-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(217, 70, 239, 0.05) 50%, transparent 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}


.signup-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-header {
    text-align: center;
    margin-bottom: 35px;
}

.card-header h2 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to left, #a5b4fc, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-header p {
    color: #9ca3af;
    font-size: 14px;
}


.input-field {
    position: relative;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 14px;
    color: #6b7280;
    font-size: 18px;
    transition: color 0.3s;
}

.input-field input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    outline: none;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s;
}


.input-field label {
    position: absolute;
    right: 45px;
    color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    font-size: 15px;
}

.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label {
    transform: translateY(-33px) scale(0.85);
    right: 15px;
    color: #818cf8;
    font-weight: 600;
}

.input-field input:focus {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(31, 41, 55, 0.8);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.input-field input:focus ~ .input-icon {
    color: #818cf8;
}


.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.btn-submit i {
    transition: transform 0.3s;
}

.btn-submit:hover i {
    transform: translateX(-5px); 
}


.error-bubble {
    position: absolute;
    bottom: -22px;
    right: 5px;
    color: #f87171;
    font-size: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}