/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #008080;
    --primary-dark: #005656;
    --bg-gradient-start: #006666;
    --bg-gradient-end: #00b3b3;
    --text-color: #333;
    --text-light: #555;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-color);
    overflow: hidden; /* Prevent scrollbars if not needed */
}

/* Background decoration circles */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

body::before {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    top: -50px;
    left: -50px;
}

body::after {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.15);
    bottom: -20px;
    right: -20px;
}

.login-container {
    background-color: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 420px;
    width: 90%;
    position: relative;
    backdrop-filter: blur(10px);
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h2 {
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.login-container h2 img {
    height: 28px;
    width: auto;
}

.logo-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.logo-img {
    width: 90px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.login-container p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 15px;
}

.role-selection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.role-selection-container form {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.role-selection-container button {
    flex: 1;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.role-selection-container button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Form Styles */
form label {
    display: block;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    width: 100%;
    margin-bottom: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f9f9f9;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
    background-color: var(--white);
}

button[type="submit"] {
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.password-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.password-container label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    color: var(--text-light);
}

.show-password-checkbox {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.login-container a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.login-container a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Error Message */
.error-msg {
    color: #e74c3c;
    background-color: #fdecea;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #fadbd8;
}
