/* Color Variables */

:root {
    --white-color: #fff;
    --gray: #777;
    --lighter-gray: #cacaca;
    --dark-color: #1a1a1a;
    --light-dark-color: #282828;
    --black-color: #000;
    --primary-color: #B00000;
    /* Purple primary color */
    --secondary-color: #4a0404;
    /* Light grayish background */
    --gradient-color: linear-gradient(to bottom, #170000, #100e0e);
    /* --gradient-color: linear-gradient(to bottom, #170000, #5e0000); */
    --gradient-color-lighter: linear-gradient(to bottom, #180606, #1d1818);
    /* --gradient-color-lighter: linear-gradient(to bottom, #2c0909, #651c1c); */
    --text-color: #e5e5e5;
    /* Dark gray text */
    --shadow-color: rgba(0, 0, 0, 0.1);
    /* Box shadow */
    --border-radius: 10px;
    --background-color: #F7F9FC;
    /* Light background */
    --secondary-text-color: #666;
    /* Footer bottom text */
    --hover-color: #E30000;
    /* Hover effect color */
}

/* General Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#errorMessages {
    color: red;
    background: rgba(255, 158, 158, 0.658);
    padding: 1rem;
    display: none;
}


/* Container */

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.1);
}


/* Left Section */

.left-section {
    width: 50%;
    background: #fff;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    max-width: 400px;
    width: 100%;
}

.content h5 {
    color: var(--hover-color);
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}


/* Modal Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 60%;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Close Button */

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Success Button */

#goToDashboardBtn {
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#goToDashboardBtn:hover {
    background-color: #0b7dda;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

form>div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

form label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

form input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--hover-color);
    border-radius: 5px;
    font-size: 14px;
}

.form-terms {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-bottom: 15px;
}

.form-terms input {
    margin-right: 10px;
}

.form-terms a {
    background: var(--gradient-color);
    -webkit-background-clip: text;
    /* For Chrome/Safari */
    background-clip: text;
    /* For other browsers */
    color: transparent;
    text-decoration: none;
}

.login-btn {
    background: var(--gradient-color);
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.5s ease;
}

.login-btn:hover {
    background: var(--hover-color);
}

.footer {
    text-align: center;
    margin-top: 15px;
}

.footer a {
    background: var(--gradient-color);
    -webkit-background-clip: text;
    /* For Chrome/Safari */
    background-clip: text;
    /* For other browsers */
    color: transparent;
    text-decoration: none;
}

.form-terms {
    display: flex;
    gap: 1rem;
    align-items: center;
}


/* Right Section */

.crypto-right {
    width: 50%;
    background: url('../images/cryptobackground.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.crypto-right::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--hover-color);
    opacity: .8;
    z-index: -1;
}


/* .crypto-preview img {
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
} */

.crypto-trust>h2 {
    font-size: 2.2rem;
    margin-bottom: .5rem;
}

.crypto-trust>h2 span {
    color: var(--lighter-gray);
}

.crypto-trust p {
    color: var(--lighter-gray);
    font-size: 16px;
    margin-bottom: 2rem;
}

.logos img {
    width: 40px;
    margin: 0 10px;
}


/* Responsive Design */

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .left-section,
    .crypto-right {
        width: 100%;
        padding: 30px;
    }
    .content,
    .info-content {
        text-align: left;
    }
    .dashboard-preview img {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .social-login button {
        font-size: 12px;
    }
    h1 {
        font-size: 24px;
    }
}