/**
 * Login Interface Stylesheet - UPDATED
 * 
 * Changes:
 * - Made "Return to Home Page" a proper button
 * - Clickable logo added
 * - Consistent button styling
 * 
 * @version 2.0 - Button Style Update
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-color: #121212;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 30px;
    text-align: center;
}

.logo-container a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo-container a:hover {
    opacity: 0.8;
}

.logo-container img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
}

.login-form {
    width: 100%;
    background-color: #222222;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

h1 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

.input-field {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    font-size: 16px;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(75, 108, 183, 0.5);
    background-color: #3a3a3a;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #4b6cb7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3b5998;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 108, 183, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #444;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.forgot-link {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-link a {
    color: #4b6cb7;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link a:hover {
    text-decoration: underline;
}

.separator {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #444;
}

.separator span {
    position: relative;
    background-color: #222;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.account-links {
    margin-top: 25px;
    text-align: center;
}

.account-links p {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 16px;
}

.link-text {
    color: #4b6cb7;
    text-decoration: none;
    font-weight: 500;
}

.link-text:hover {
    text-decoration: underline;
}

.success-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    background-color: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border-left: 4px solid #34d399;
}

.error-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

/* UPDATED: Return home button styling */
.return-home-btn {
    display: block;
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.return-home-btn:hover {
    background-color: #444;
    transform: translateY(-1px);
}

.return-home-btn:active {
    transform: translateY(0);
}



@media (max-width: 576px) {
    .container {
        padding: 15px;
    }
    
    .login-form {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
}