/*
|--------------------------------------------------------------------------
| SIGN UP/SIGN IN STYLE (DARK MODE / PROFESSIONAL)
|--------------------------------------------------------------------------
| Refactored for a clean, professional dark mode with animations and transitions.
*/

/* --- Global Variables (Professional Dark Palette) --- */
:root {
    --bg-dark: #121212;         /* Deepest dark background */
    --card-bg: #1e1e1e;         /* Form/Card background */
    --accent-color: #00cc99;    /* Emerald Green (Primary Action) */
    --text-light: #f0f0f0;      /* Near-white text */
    --input-focus: #33ffc2;     /* Lighter green for hover/focus */
    --shadow-color: rgba(0, 0, 0, 0.7); /* Deep shadow */
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Keeping the original background image but ensuring it covers the view */
    background-image: url(signup.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    /* Cleaned up text shadow */
    text-shadow: 0 0 5px rgba(0, 204, 153, 0.5); 
    margin: 20px 0 10px 0;
}

.p1 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

form {
    background-color: var(--card-bg);
    /* Subtle transparency for a modern look */
    background-color: rgba(30, 30, 30, 0.95); 
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--accent-color); /* Accent border */
    box-shadow: 0 4px 20px var(--shadow-color);
    width: 90%;
    max-width: 400px;
    transition: all 0.5s ease;
    animation: fadeIn 1s ease-out; /* Entry Animation */
}

/* Input Labels */
.p2, form > p { 
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: left;
    margin-bottom: 5px;
}

/* Input Fields */
.email, .password {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: var(--text-light);
    font-size: 1rem;
    /* Smooth Transition for focus effect */
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    box-sizing: border-box;
    /* Removing the scroll bar on email input */
    overflow: hidden; 
}

.email:focus, .password:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px var(--input-focus);
    background-color: #2a2a2a;
    outline: none;
}

/* Submit Button */
.login_submit {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    background-color: var(--accent-color);
    color: var(--bg-dark); 
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    /* Smooth Transition for hover effect */
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.login_submit:hover {
    background-color: var(--input-focus);
    transform: translateY(-2px); /* Slight lift animation */
    box-shadow: 0 5px 15px rgba(0, 204, 153, 0.5);
}

/* Register Link */
.p-register {
    text-align: center;
    margin-top: 20px;
}

.register {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    /* Smooth Transition for hover effect */
    transition: color 0.3s;
}

.register:hover {
    color: var(--input-focus);
    text-decoration: underline;
}
.back{
    color: #00cc99;
}

/* Back Link (Assuming 'Back' is the last p element in signup.html) */
body > p:last-child a {
    color: var(--accent-color);
    font-size: 1.0rem;
    text-decoration: none;
    display: block; /* Make it take its own line */
    text-align: center;
    margin-top: 20px;
    transition: color 0.3s;
}

body > p:last-child a:hover {
    color: var(--input-focus);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Query for responsiveness */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    .p1 {
        font-size: 1.3rem;
    }
    form {
        padding: 30px 20px;
    }
    body {
        /* Remove the background image on small screens for better performance and readability */
        background-image: none;
        background-color: #121212;
    }
}