* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    border-radius: 50%;
    margin-bottom: 20px;
    
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 5px;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.role-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.role-option {
    flex: 1;
    cursor: pointer;
}

.role-option input {
    display: none;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.role-option input:checked + .role-card {
    border-color: #1e3a8a;
    background: #1e3a8a;
    color: white;
}

.role-card i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: inherit;
}

.role-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 15px 45px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.input-group input[type="password"] {
    padding-right: 50px;
}

.input-group input:focus {
    outline: none;
    border-color: #1e3a8a;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    z-index: 3;
    pointer-events: auto;
}

.toggle-password:hover {
    color: #1e3a8a;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

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

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.forgot-link,
.back-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover,
.back-link:hover {
    color: #3b82f6;
}

.signup-section {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.signup-section p {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 0.9rem;
}

.signup-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: translateY(-1px);
}

.signup-card {
    max-width: 450px;
}

.input-group select {
    width: 100%;
    padding: 15px 45px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8f9fa;
    color: #1e293b;
    appearance: none;
    transition: all 0.3s ease;
}

.input-group select:focus {
    outline: none;
    border-color: #1e3a8a;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.verify-otp-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #059669;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verify-otp-btn:hover {
    background: #047857;
}

@media (max-width: 768px) {
    .login-container {
        padding: 15px;
    }
    
    .login-card {
        padding: 30px 25px;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .role-selector {
        gap: 10px;
    }
    
    .role-card {
        padding: 15px;
    }
    
    .role-card i {
        font-size: 1.8rem;
    }
    
    .input-group input {
        padding: 12px 40px 12px 40px;
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .login-header img {
        width: 50px;
        height: 50px;
    }
    
    .login-header h1 {
        font-size: 1.4rem;
        margin-bottom: 3px;
    }
    
    .login-header p {
        font-size: 0.85rem;
    }
    
    .role-selector {
        flex-direction: column;
        gap: 8px;
    }
    
    .role-card {
        padding: 12px;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .role-card i {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .role-card span {
        font-size: 0.85rem;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .input-group input {
        padding: 10px 35px 10px 35px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .input-group i {
        left: 12px;
        font-size: 0.9rem;
    }
    
    .toggle-password {
        right: 12px;
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 10px;
        font-size: 0.9rem;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    
    .login-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .signup-section {
        padding: 12px;
        margin: 15px 0;
        border-radius: 6px;
    }
    
    .signup-section p {
        font-size: 0.85rem;
    }
    
    .signup-btn {
        padding: 6px 16px;
        font-size: 0.85rem;
        border-radius: 5px;
    }
    
    .verify-otp-btn {
        right: 8px;
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 5px;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 20px 15px;
    }
    
    .login-header h1 {
        font-size: 1.2rem;
    }
    
    .role-card {
        padding: 10px;
    }
    
    .role-card i {
        font-size: 1.3rem;
    }
    
    .role-card span {
        font-size: 0.8rem;
    }
    
    .input-group input {
        padding: 8px 30px 8px 30px;
        font-size: 0.85rem;
    }
    
    .input-group i {
        left: 10px;
        font-size: 0.8rem;
    }
    
    .toggle-password {
        right: 10px;
        font-size: 0.8rem;
    }
    
    .login-btn {
        padding: 8px;
        font-size: 0.85rem;
    }
}