/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}

.login-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 5px;
}

.login-header h5 {
    color: #3498db;
    font-size: 16px;
    margin-bottom: 15px;
}

.login-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
}

.input-group {
    display: flex;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.input-group i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    background-color: #f8f9fa;
    color: #6c757d;
    border-right: 1px solid #ddd;
}

.input-group input,
.input-group select {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    width: 100%;
}

.input-group .eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me input {
    margin-right: 8px;
}

.remember-me label {
    font-size: 14px;
    color: #2c3e50;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #2980b9;
}

select {
    appearance: none; /* Remove default browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: calc(100% - 16px); /* Adjust this value to move arrow left */
    background-position-y: center;
    padding-right: 30px; /* Ensure text doesn't overlap with arrow */
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .login-container {
        padding: 20px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .login-header h5 {
        font-size: 14px;
    }
    
    .input-group input,
    .input-group select {
        padding: 10px 12px;
    }
    
    .btn {
        padding: 10px;
    }
}

@media screen and (max-width: 320px) {
    .login-container {
        padding: 15px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .input-group input,
    .input-group select,
    .remember-me label {
        font-size: 13px;
    }
    
    .btn {
        font-size: 14px;
    }
}

/* Handle very small screens */
@media screen and (max-height: 500px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }
    
    .login-container {
        margin: 10px 0;
    }
}

/* Fix input field display on iOS */
@supports (-webkit-touch-callout: none) {
    .input-group select {
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 30px;
    }
}