/* ====== নিউমরফিক ডিজাইন ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
    overflow: hidden;
    font-family: 'Hind Siliguri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.circle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Main Circle */
.circle {
    position: relative;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 5s ease-in-out infinite;
}

/* Outer Ring */
.circle::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #b0b0b0);
    box-shadow: 
        15px 15px 35px rgba(0,0,0,0.2),
        -12px -12px 30px rgba(255,255,255,0.9),
        inset 4px 4px 10px rgba(255,255,255,0.8),
        inset -5px -5px 12px rgba(0,0,0,0.15);
    animation: spin 8s linear infinite;
    z-index: -2;
}

/* Glow */
.circle::after {
    content: "";
    position: absolute;
    inset: -35px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.7), rgba(180,180,180,0.2));
    filter: blur(30px);
    z-index: -3;
}

/* Inner Mask */
.mask {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8e8e8, #c8c8c8);
    box-shadow: 
        inset 15px 15px 30px rgba(0,0,0,0.15),
        inset -12px -12px 25px rgba(255,255,255,0.9);
    z-index: -1;
}

/* Card */
.card {
    width: 460px;
    height: 460px;
    padding: 50px 45px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f8f8f8, #d5d5d5);
    box-shadow: 
        20px 20px 45px rgba(0,0,0,0.18),
        -15px -15px 35px rgba(255,255,255,0.95),
        inset 3px 3px 6px rgba(255,255,255,0.7),
        inset -4px -4px 8px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Logo/Icon */
.logo-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.4);
    animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08) rotate(3deg); }
}

.logo-icon i {
    font-size: 32px;
    color: #6a0dad;
}

/* ====== হেডিং - মাল্টি-কালার ইফেক্ট (বাটনের মতো) ====== */
.card h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    
    /* টেক্সট কালার চেইঞ্জ */
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heading-rainbow 4s ease-in-out infinite;
    
    /* টেক্সট শ্যাডো (স্বচ্ছতা সহ) */
    text-shadow: none;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1)) drop-shadow(-2px -2px 4px rgba(255,255,255,0.8));
    
    /* ট্রানজিশন */
    transition: all 0.3s ease;
}

/* হোভার করলে দ্রুত ও প্রাণবন্ত */
.card h2:hover {
    animation-duration: 1.5s;
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(106, 13, 173, 0.3)) drop-shadow(2px 2px 4px rgba(0,0,0,0.1)) drop-shadow(-2px -2px 4px rgba(255,255,255,0.8));
}

/* ====== হেডিং এর আন্ডারলাইন (রেইনবো) ====== */
.card h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 1px;
    margin: 4px auto 0;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
    background-size: 300% 300%;
    border-radius: 3px;
    animation: heading-rainbow 4s ease-in-out infinite;
    transition: all 0.5s ease;
}

/* হোভার করলে আন্ডারলাইন প্রসারিত */
.card h2:hover::after {
    width: 100%;
    height: 6px;
}

/* ====== রেইনবো অ্যানিমেশন ====== */
@keyframes heading-rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Input Box */
.input-box {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.input-box .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 2;
}

.input-box input {
    width: 100%;
    padding: 15px 16px 15px 48px;
    border: none;
    outline: none;
    border-radius: 16px;
    background: linear-gradient(145deg, #d9d9d9, #f5f5f5);
    color: #444;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 
        inset 8px 8px 16px rgba(0,0,0,0.1),
        inset -6px -6px 12px rgba(255,255,255,0.9);
    transition: all 0.4s ease;
}

.input-box input::placeholder {
    color: #aaa;
    font-weight: 400;
}

.input-box input:focus {
    background: linear-gradient(145deg, #f5f5f5, #ffffff);
    box-shadow: 
        inset 6px 6px 12px rgba(0,0,0,0.08),
        inset -6px -6px 12px rgba(255,255,255,1),
        0 0 0 4px rgba(106, 13, 173, 0.15);
    transform: scale(1.02);
}

.input-box input:focus + .input-icon {
    color: #6a0dad;
}

/* Floating Label */
.input-box label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 15px;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -8px;
    left: 42px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    color: #6a0dad;
    box-shadow: 
        3px 3px 8px rgba(0,0,0,0.1),
        -3px -3px 8px rgba(255,255,255,0.9);
    transform: translateY(0);
}

/* ====== কাস্টমাইজড বাটন ====== */
.btn-login {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(145deg, #7b1fa2, #4a148c);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 
        8px 8px 20px rgba(123, 31, 162, 0.4),
        -4px -4px 12px rgba(255,255,255,0.6),
        inset 2px 2px 6px rgba(255,255,255,0.25),
        inset -4px -4px 8px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* বাটনের রেইনবো গ্লো অ্যানিমেশন */
.btn-login::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6, #ff6b6b);
    background-size: 300% 300%;
    z-index: -1;
    animation: rainbow-border 4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes rainbow-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-login:hover::after {
    opacity: 1;
}

/* বাটনের শাইন ইফেক্ট */
.btn-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    transform: rotate(25deg) translateY(-30%);
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.btn-login:hover::before {
    transform: rotate(25deg) translateY(30%);
}

.btn-login:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 
        12px 12px 30px rgba(123, 31, 162, 0.5),
        -6px -6px 18px rgba(255,255,255,0.7),
        inset 2px 2px 6px rgba(255,255,255,0.3),
        inset -4px -4px 8px rgba(0,0,0,0.1);
    background: linear-gradient(145deg, #8e24aa, #5e1b7a);
}

.btn-login:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 
        4px 4px 12px rgba(123, 31, 162, 0.3),
        -2px -2px 8px rgba(255,255,255,0.5),
        inset 4px 4px 10px rgba(0,0,0,0.15),
        inset -4px -4px 8px rgba(255,255,255,0.1);
    transition-duration: 0.1s;
}

.btn-login i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-login:hover i {
    transform: translateX(4px) scale(1.15) rotate(-5deg);
}

.btn-login .btn-text {
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-login:hover .btn-text {
    letter-spacing: 2px;
}

/* লোডিং স্টেট */
.btn-login .spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-login.loading .btn-text {
    display: none;
}

.btn-login.loading .spinner {
    display: block;
}

.btn-login.loading {
    background: linear-gradient(145deg, #4a148c, #2a0a4a);
    transform: scale(0.98);
    cursor: not-allowed;
    box-shadow: 
        4px 4px 12px rgba(123, 31, 162, 0.2),
        -2px -2px 8px rgba(255,255,255,0.3),
        inset 4px 4px 10px rgba(0,0,0,0.2);
}

.btn-login.loading::after {
    opacity: 0;
}

/* Error Message */
.alert-error {
    background: rgba(255, 0, 0, 0.08);
    color: #d32f2f;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    box-shadow: inset 3px 3px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px); }
    30% { transform: translateX(10px); }
    50% { transform: translateX(-6px); }
    70% { transform: translateX(6px); }
    90% { transform: translateX(-3px); }
}

.alert-error i {
    font-size: 16px;
}

/* Success Message */
.success {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #f8f8f8, #d5d5d5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.5s ease;
    z-index: 10;
}

.success.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.check {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
    color: #4CAF50;
    background: linear-gradient(145deg, #ffffff, #d6d6d6);
    box-shadow: 
        12px 12px 25px rgba(0,0,0,0.15),
        -10px -10px 22px rgba(255,255,255,1);
    animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% { transform: scale(0) rotate(-30deg); }
    60% { transform: scale(1.3) rotate(8deg); }
    80% { transform: scale(0.9) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}

.success h3 {
    margin-top: 16px;
    color: #555;
    font-size: 24px;
    font-weight: 700;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.success p {
    margin-top: 4px;
    color: #888;
    font-size: 14px;
    animation: fadeInUp 0.5s ease 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Demo Credentials */
.demo-cred {
    margin-top: 18px;
    padding: 8px 16px;
    background: linear-gradient(145deg, #e8e8e8, #d5d5d5);
    border-radius: 30px;
    box-shadow: inset 3px 3px 8px rgba(0,0,0,0.08), inset -3px -3px 8px rgba(255,255,255,0.8);
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.demo-cred span {
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
    padding: 2px 12px;
    border-radius: 12px;
    font-weight: 600;
    color: #555;
    font-size: 11px;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.demo-cred span:hover {
    background: linear-gradient(145deg, #e8e8e8, #d0d0d0);
    transform: scale(1.05);
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Responsive */
@media (max-width: 580px) {
    .circle {
        width: 400px;
        height: 400px;
    }
    .card {
        width: 350px;
        height: 350px;
        padding: 35px 30px;
    }
    .card h2 {
        font-size: 26px;
    }
    .logo-icon {
        width: 55px;
        height: 55px;
    }
    .logo-icon i {
        font-size: 26px;
    }
    .input-box input {
        padding: 12px 14px 12px 42px;
        font-size: 14px;
    }
    .input-box .input-icon {
        left: 14px;
        font-size: 14px;
    }
    .btn-login {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 40px;
    }
    .demo-cred {
        font-size: 10px;
        padding: 6px 12px;
    }
}

@media (max-width: 430px) {
    .circle {
        width: 340px;
        height: 340px;
    }
    .card {
        width: 300px;
        height: 300px;
        padding: 28px 22px;
    }
    .card h2 {
        font-size: 22px;
    }
    .subtitle {
        font-size: 11px;
        margin-bottom: 18px;
    }
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    .logo-icon i {
        font-size: 22px;
    }
    .input-box {
        margin-bottom: 14px;
    }
    .input-box input {
        padding: 10px 12px 10px 38px;
        font-size: 13px;
        border-radius: 12px;
    }
    .input-box .input-icon {
        left: 12px;
        font-size: 13px;
    }
    .input-box input:focus ~ label,
    .input-box input:valid ~ label {
        font-size: 10px;
        top: -6px;
        left: 34px;
        padding: 2px 10px;
    }
    .btn-login {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 35px;
        gap: 8px;
    }
    .btn-login i {
        font-size: 15px;
    }
    .demo-cred {
        font-size: 9px;
        padding: 4px 10px;
        gap: 8px;
        margin-top: 14px;
    }
    .demo-cred span {
        font-size: 9px;
        padding: 1px 8px;
    }
    .alert-error {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }
}