/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    background: #f8f9fa;
    font-family: 'Montserrat', sans-serif;
}

.table {
    display: table;
    width: 100%;
    height: 100%;
}

.cell {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    padding: 20px;
}

.login.table {}

.login.table .cell {}

.logo {
    margin-bottom: 40px;
}

.logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.login h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 10px 0 5px;
    letter-spacing: 1px;
}

.login h2 {
    font-size: 20px;
    font-weight: 400;
    color: #555;
    margin: 0 0 30px;
}

.login .form {
    margin: auto;
    padding: 40px 30px;
    border-radius: 12px;
    background: white;
    border: none;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.login .form .login-button {
    display: block;
    text-decoration: none;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    width: 100%;
    height: 54px;
}

.login .form .login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #228B22;
}

.login .form .login-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: white;
    display: block;
}

.login .form hr {
    width: 80%;
    margin: 25px auto;
    height: 1px;
    background: #e9ecef;
    border: 0;
}

.login .form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    margin-top: 20px;
    text-align: left;
}

.login .form label:first-of-type {
    margin-top: 0;
}

.login .form form {
    text-align: left;
}

.login .form input[type=text],
.login .form input[type=password],
.login .form input[type=email] {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.3s ease;
    background: #fff;
}

.login .form input[type=text]:focus,
.login .form input[type=password]:focus,
.login .form input[type=email]:focus {
    outline: none;
    border-color: #228B22;
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.login .form input[type=submit] {
    margin-top: 25px;
    display: block;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: white;
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    background: #228B22;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login .form input[type=submit]:hover {
    background: #1a6b1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.3);
}

.login .form + a:link,
.login .form + a:visited {
    font-size: 14px;
    font-weight: 500;
    color: #228B22;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
    transition: all 0.3s ease;
}

.login .form + a:hover,
.preform:hover {
    color: #1a6b1a;
    transform: translateY(-1px);
}

.preform {
    color: #228B22;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Error Messages */
.login .form p {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 15px 0 0;
    padding: 12px;
    border-radius: 6px;
    background: #fee;
    border: 1px solid #fcc;
}

/* Input Error States */
.login .form input[style*="border: 1px solid red"] {
    border: 2px solid #e74c3c !important;
    background: #fef5f5;
}

.login .form input[style*="border: 1px solid red"]:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Error Label Styling */
.login .form label span[style*="color: red"] {
    color: #e74c3c !important;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 480px) {
    .cell {
        padding: 15px;
    }
    
    .login .form {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .login h1 {
        font-size: 28px;
    }
    
    .login h2 {
        font-size: 18px;
    }
    
    .logo img {
        width: 60px;
        height: 60px;
    }
}