/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    background-image: linear-gradient(to bottom right, #f8f8f8, #e8e8e8);
    min-height: 100vh;
}

/* Login Form Styles */
.login-form {
    background: linear-gradient(145deg, #3498db, #2980b9);
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 350px;
    text-align: center;
    margin: 50px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 10px 15px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Input and Select Field Styles */
.login-form input,
.login-form select {
    width: 100%;
    padding: 12px 15px;
    margin: 12px 0;
    border: 1px solid rgba(204, 204, 204, 0.6);
    border-radius: 6px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    box-sizing: border-box;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-form input:hover,
.login-form select:hover {
    background-color: #fff;
    border-color: rgba(0, 123, 255, 0.4);
}

/* Button Styles */
.login-form button {
    width: 85%;
    padding: 14px;
    background: linear-gradient(145deg, #1e5799, #16436f);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2563eb, #1a4fc6);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.login-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.login-form button:hover::before {
    opacity: 1;
}

.login-form button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Focus Styles */
.login-form input:focus,
.login-form select:focus {
    border-color: #2980b9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.25);
}

.login-form button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4), 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Select Field Specific Styles */
.login-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.9) url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 8 8%22%3E%3Cpath d=%22M1 2L4 5L7 2%22 stroke=%22%23333%22 stroke-width=%221.5%22 fill=%22none%22/%3E%3C/svg%3E') no-repeat right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

/* Paragraph Styles */
p {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

p a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.2s ease;
}

p a:hover {
    color: #1c638f;
    text-decoration: underline;
}

/* Add a subtle shake animation for error feedback */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
