/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #2a3c78, #3a4e8c);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.brand-header {
    margin-bottom: 30px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.logo-circle i {
    font-size: 36px;
    color: white;
}

.brand-header h1 {
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 18px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.input-group input::placeholder {
    color: #999;
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Password group with external toggle */
.password-group {
    display: flex;
    align-items: center;
}

.password-group .input-group {
    flex: 1;
    margin-bottom: 0;
}

.password-toggle-container {
    margin-left: 10px;
    width: 44px;
    height: 44px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.password-toggle-container:hover {
    background: #e0e0e0;
}

.password-toggle {
    color: #777;
    font-size: 18px;
}

/* Buttons */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-btn:hover {
    background: linear-gradient(45deg, #3a0ca3, #4361ee);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 12, 163, 0.3);
}

/* Footer Links */
.footer-links {
    margin-top: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links p {
    color: #666;
    font-size: 15px;
}

.footer-links a {
    color: #4361ee;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #3a0ca3;
    text-decoration: underline;
}

.forgot-link {
    font-size: 15px;
    color: #666;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: white;
    margin: 80px auto;
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    position: relative;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #999;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #333;
    transform: scale(1.1);
}

.modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.modal-header h2 {
    color: #333;
    font-size: 26px;
}

.signup-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, #4cc9f0, #4361ee);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.signup-btn:hover {
    background: linear-gradient(45deg, #4361ee, #4cc9f0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 12, 163, 0.2);
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 25px;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    .input-group input,
    .input-group select {
        padding: 14px 15px 14px 45px;
    }
    
    .password-toggle-container {
        width: 40px;
        height: 40px;
    }
}