/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Main Container */
.main-card {
    display: flex;
    background: white;
    width: 850px;
    height: 500px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Left Section - Blue Panel */
.left-panel {
    flex: 1.1;
    background-color: #7d97f4;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    border-top-right-radius: 180px;
    border-bottom-right-radius: 180px;
}

.left-panel h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.left-panel p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* Right Section - Form Panel */
.right-panel {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-panel h2 {
    font-size: 26px;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 13px;
    color: #888;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Form Elements */
form p {
    margin-bottom: 15px;
}

form label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

form input {
    width: 100%;
    padding: 12px 15px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}

form input:focus {
    border-color: #7d97f4;
    background: white;
}

/* Submit Button */
.submit-btn, button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #7d97f4;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(125, 151, 244, 0.3);
    transition: 0.3s;
}

.submit-btn:hover, button[type="submit"]:hover {
    background-color: #6a83e0;
    transform: translateY(-1px);
}

/* Messages & Errors */
.messages {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
}
.success { background: #dcfce7; color: #166534; }
.error, .error-box { background: #fee2e2; color: #b91c1c; padding: 10px; border-radius: 8px; margin-bottom: 15px; font-size: 13px; }

/* Back Link Section */
.footer-text {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.footer-text a {
    color: #7d97f4;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.footer-text a:hover {
    text-decoration: underline;
}