* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}
body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glass Header with New Navbar */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 20px;
    position: relative;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.8s ease-out;
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    animation: logoPulse 3s infinite;
    position: relative;
    overflow: hidden;
}

.logo-img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.logo-img i {
    color: #2c5aa0;
    font-size: 1.3rem;
    z-index: 2;
    position: relative;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    text-decoration: none;
}

/* Login Form Styles */
.login-container {
    padding: 30px 25px;
    position: relative;
    z-index: 5;
    animation: fadeIn 0.8s ease-out;
}

.login-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 3px;
}

.login-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    z-index: -1;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
    margin-top: 12px;
}
.form-label {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    font-family: 'Vazirmatn', sans-serif;
    color: #fff;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.bank-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.bank-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.bank-option::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    z-index: -1;
}

.bank-option:hover {
    border-color: #ffd700;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.bank-option.selected {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 15px 25px rgba(255, 215, 0, 0.3);
    transform: translateY(-5px) scale(1.03);
}

.bank-logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: white;
    padding: 5px;
}

.bank-logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    z-index: -1;
}

.bank-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
    transition: all 0.5s ease;
}

.bank-option:hover .bank-logo {
    transform: rotateY(180deg) scale(1.1);
}

.bank-option:hover .bank-logo img {
    transform: rotateY(-180deg);
}

.bank-option.selected .bank-logo {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.bank-name {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: #fff;
    transition: all 0.3s ease;
}

.bank-option.selected .bank-name {
    color: #ffd700;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(30%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #ffd700;
}

.login-button {
    width: 100%;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #2c5aa0;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
}

.login-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.6);
}

.login-button:hover::before {
    animation: shine 0.8s;
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-button:disabled:hover::before {
    animation: none;
}

.forgot-password {
    text-align: center;
    margin: 20px 0;
}

.forgot-link {
    color: #ffd700;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.forgot-link:hover::after {
    width: 100%;
}

.security-notice {
    background: rgba(255, 243, 205, 0.2);
    border: 1px solid rgba(255, 234, 167, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #ffd700;
    line-height: 1.5;
    backdrop-filter: blur(5px);
}

/* Animation Keyframes */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes wave {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes pulse {
    0% { transform: translateY(-5px) scale(1.03); }
    50% { transform: translateY(-5px) scale(1.05); }
    100% { transform: translateY(-5px) scale(1.03); }
}

@keyframes rotate3d {
    0% {
        transform: perspective(500px) rotateY(0);
    }
    100% {
        transform: perspective(500px) rotateY(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .container {
        border-radius: 0;
    }
    
    header {
        border-radius: 0;
        padding: 12px 15px;
    }
    
    .login-container {
        padding: 20px 15px;
    }
    
    .bank-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
}