@font-face {
    font-family: 'Gilroy';
    src: url('/static/fonts/Gilroy-Black.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'Gilroy';
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    width: 100%;
}

.card-preview {
    margin-bottom: 1.5rem;
    text-align: center;
}

.card {
    width: 100%; /* Full width of the container */
    height: 150px;
    background: #333;
    color: #000; /* Card number color */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 15px; /* Ensure padding for left alignment */
}

.card-logo {
    width: 50px; /* Adjust size as needed */
    position: absolute;
    top: 15px;
    left: 15px;
}

.card-number {
    font-family: 'Gilroy'; /* Ensure card number uses Gilroy font */
    font-size: 1.2em; /* Card number font size */
    margin: 0;
    position: relative;
    text-align: left;
    margin-top: 7.2em;
    color: black; /* Card number color should be black */
}

.card-expiry {
    font-size: 0.8em;
    margin: 0;
    position: relative;
    text-align: left;
}

.card-cvv {
    font-size: 0.8em;
    margin: 0;
    position: relative;
    text-align: left;
}

h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5em;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    font-family: 'Gilroy'; /* Ensure label uses Gilroy */
    margin-bottom: 5px;
    color: #75849a; /* Input title text color */
    font-size: 0.9em; /* Input title font size */
}

input {
    font-family: 'Gilroy'; /* Ensure input uses Gilroy */
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #495057;
    font-size: 1em;
}

button {
    font-family: 'Gilroy'; /* Ensure button uses Gilroy */
    background-color: #4137e7;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #2c2a8b;
}

#message {
    text-align: center;
    margin-top: 1rem;
}

.error-message {
    color: red;
    font-family: 'Gilroy'; /* Ensure error message uses Gilroy */
    font-size: 0.8em; /* Slightly smaller font size for the message */
    margin-top: 5px;
}

.status-badge {
    background-color: #28a745; /* Status badge color */
    font-family: 'Gilroy';
    font-size: 0.8em; /* Status badge font size */
    padding: 0.3em 0.6em;
    border-radius: 4px;
    color: white;
    display: inline-block;
    margin-top: 0.5rem;
}
