body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 2rem;
    background: linear-gradient(45deg, #593915, #ffe5c6);
}

.login-container{
    background: #ffe5c6;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
}
.coupon-container {
    background: #ffe5c6;
    padding: 20px;
    display: flex;
    gap: 1rem;
    border-radius: 10px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
}

@media (max-width: 768px) {
  .coupon-container {
    flex-direction: column; /* Change direction on smaller screens */
    align-items: center;
  }
}

.top-bar {
    text-align: center;
    margin-bottom: 20px;
}

.coupon-images img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin-bottom: 10px;
}

.coupon-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coupon-actions input {
    padding: 10px;
    font-size: 16px;
}

.coupon-actions button {
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

.error {
    color: red;
}

.coupon-back-wrapper {
    position: relative;
    display: inline-block;
}

#coupon-back {
    width: 100%;
    max-width: 400px;
    display: block;
}

#coupon-code-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -76%);
    font-size: 32px;
    font-weight: bold;
    color: #fff3e3;
    /* text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3); */
    font-family: 'Arial', sans-serif;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

#custom-alert-container {
    position: fixed;
    top: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

h1 {
   font-family: system-ui;
    color: #563713; 
}

.custom-alert {
    padding: 14px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease, fadeOut 0.3s ease 3s forwards;
    opacity: 0.95;
    font-family: Arial, sans-serif;
}

.custom-alert.success {
    background-color: #2ecc71;
    /* green */
}

.custom-alert.error {
    background-color: #e74c3c;
    /* red */
}

.custom-alert.alert {
    background-color: #f1c40f;
    /* yellow */
    color: #333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}



/* Common input style */
.login-container input,
.coupon-container input {
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0;
    border: none;               /* remove default border */
    border-radius: 12px;        /* rounded corners */
    background-color: #fff5e8;  /* light gray background */
    font-size: 16px;
    outline: none;              /* remove focus outline */
    box-sizing: border-box;
    transition: background-color 0.2s, box-shadow 0.2s;
}

/* Input focus effect */
.login-container input:focus,
.coupon-container input:focus {
    background-color: #fffaf3;
    box-shadow: 0 0 0 3px rgba(250, 202, 100, 0.3); /* subtle glow */
}

/* Button style */
.login-container button,
.coupon-container button {
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0;
    border: none;
    border-radius: 12px;
    background-color: #896f4c;  /* modern blue */
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

/* Button hover */
.login-container button:hover,
.coupon-container button:hover {
    background-color: #754e1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* Button active */
.login-container button:active,
.coupon-container button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
